[Pkg-isocodes-devel] r1314 - trunk/iso-codes
toddy-guest at alioth.debian.org
toddy-guest at alioth.debian.org
Wed Jan 23 17:26:49 UTC 2008
Author: toddy-guest
Date: 2008-01-23 17:26:49 +0000 (Wed, 23 Jan 2008)
New Revision: 1314
Modified:
trunk/iso-codes/rules.make
Log:
Modify target update-po to clean up po files
Modified: trunk/iso-codes/rules.make
===================================================================
--- trunk/iso-codes/rules.make 2008-01-23 16:35:57 UTC (rev 1313)
+++ trunk/iso-codes/rules.make 2008-01-23 17:26:49 UTC (rev 1314)
@@ -14,12 +14,17 @@
false; \
fi
+# This target merges all po files with the current pot file,
+# removes obsolete msgids and substitutes the Project-Id-Version
+# header with the correct value
.PHONY: update-po
update-po:
for pofile in $(pofiles); do \
$(MSGMERGE) $$pofile $(DOMAIN).pot > tmpfile; \
- mv tmpfile $$pofile; \
+ msgattrib --no-obsolete tmpfile > $$pofile; \
+ sed -i -e 's/^\"Project-Id-Version: iso.*/\"Project-Id-Version: $(DOMAIN) $(VERSION)\\n\"/' $$pofile; \
done
+ rm -f tmpfile
localedir = $(datadir)/locale
More information about the Pkg-isocodes-devel
mailing list