[Pkg-isocodes-devel] r1210 - trunk/iso-codes

toddy-guest at alioth.debian.org toddy-guest at alioth.debian.org
Mon Dec 3 11:57:52 UTC 2007


Author: toddy-guest
Date: 2007-12-03 11:57:52 +0000 (Mon, 03 Dec 2007)
New Revision: 1210

Modified:
   trunk/iso-codes/rules.make
Log:
Add new .PHONY target update-po

Using this target, all .po files in the current directory will be merged
with the POT file.


Modified: trunk/iso-codes/rules.make
===================================================================
--- trunk/iso-codes/rules.make	2007-12-03 11:46:53 UTC (rev 1209)
+++ trunk/iso-codes/rules.make	2007-12-03 11:57:52 UTC (rev 1210)
@@ -14,6 +14,13 @@
 		false; \
 	fi
 
+.PHONY: update-po
+update-po:
+	for pofile in $(pofiles); do \
+		$(MSGMERGE) $$pofile $(DOMAIN).pot > tmpfile; \
+		mv tmpfile $$pofile; \
+	done
+
 localedir = $(datadir)/locale
 
 install-data-hook: $(mofiles)




More information about the Pkg-isocodes-devel mailing list