summaryrefslogtreecommitdiff
path: root/src/mozclient.mk.in
diff options
context:
space:
mode:
authorFabien Tassin <fta@sofaraway.org>2008-01-23 22:15:34 +0100
committerFabien Tassin <fta@sofaraway.org>2008-01-23 22:15:34 +0100
commit064831ac4a417a335318822f1b216a66ce9c3493 (patch)
tree4ce510adc337fc647c41511ecb3c52fbe90e8699 /src/mozclient.mk.in
parentaa743c10443fc9b23590404e6c8a46093d8e73db (diff)
* Fix PST date missed for direct checkout
- update src/mozclient.mk.in
Diffstat (limited to 'src/mozclient.mk.in')
-rw-r--r--src/mozclient.mk.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mozclient.mk.in b/src/mozclient.mk.in
index 37340cc..cf61c89 100644
--- a/src/mozclient.mk.in
+++ b/src/mozclient.mk.in
@@ -85,6 +85,7 @@ MOZCLIENT_EXCLUDE_SCRIPT := ../../remove.binonly.sh
NOBINONLY := nobinonly
TAR_EXCLUDE := --exclude=CVS --exclude=.cvsignore
+DATE_FILTER := sed -e 's,\(....\)\(..\)\(..\)[rt]\(..\)\(..\),\1/\2/\3 \4:\5 PST,'
ifdef DEBIAN_TAG
DEBIAN_DATE = $(NULL)
@@ -95,7 +96,7 @@ DEBIAN_MOZ_CO_TAG = MOZ_CO_TAG=$(DEBIAN_LTAG)
else
DEBIAN_MOZ_CO_TAG = $(NULL)
ifdef DEBIAN_DATE
-DEBIAN_CO_DATE = $(shell echo "-D \"$(DEBIAN_DATE)\"" | sed -e 's/[rt]/ /')
+DEBIAN_CO_DATE = $(shell echo "-D \"$(DEBIAN_DATE)\"" | $(DATE_FILTER))
endif
ifdef DEBIAN_BRANCH
DEBIAN_CO_TAG = -r $(DEBIAN_BRANCH)
@@ -156,7 +157,7 @@ ifneq (,$(DEBIAN_DATE))
mozclient-checkout: MOZCLIENT_DATE = MOZ_CO_DATE="$(DEBIAN_DATE)"
else
mozclient-checkout: DEBIAN_DATE = $(shell $(MOZCLIENT_GETDATE))
-mozclient-checkout: MOZCLIENT_DATE = MOZ_CO_DATE="$(shell echo $(DEBIAN_DATE) | sed -e 's,\(....\)\(..\)\(..\)[rt]\(..\)\(..\),\1/\2/\3 \4:\5 PST,')"
+mozclient-checkout: MOZCLIENT_DATE = MOZ_CO_DATE="$(shell echo $(DEBIAN_DATE) | $(DATE_FILTER))"
endif
endif
mozclient-checkout: