summaryrefslogtreecommitdiff
path: root/MakeTAGS
diff options
context:
space:
mode:
Diffstat (limited to 'MakeTAGS')
-rw-r--r--MakeTAGS5
1 files changed, 4 insertions, 1 deletions
diff --git a/MakeTAGS b/MakeTAGS
index 336d63f483..a11ff9be48 100644
--- a/MakeTAGS
+++ b/MakeTAGS
@@ -166,9 +166,12 @@ $P/subdirs.pot: $(subdirs:%=$P/%.pot)
include $(common-objpfx)version.mk
# Combine all the messages into the final sorted template translation file.
+# The following code requires GNU date.
$P/libc.pot: $(all-pot)
@rm -f $@.new
- sed -e 's/VERSION/$(version)/' -e "s/DATE/`date +'%Y-%m-%d %k:%M'`/" \
+ disp='set `date -R`; echo $$6'; \
+ sed -e 's/VERSION/$(version)/' \
+ -e "s/DATE/`date +'%Y-%m-%d %I:%M'$$disp/" \
po/header.pot > $@.new
$(XGETTEXT) -d - --omit-header -n -s $^ >> $@.new
mv -f $@.new $@