Просмотр исходного кода

man/Makefile.am: Add update-po target

New target to easily update the .pot and .po files. Uses po4a --force.
Frank Lichtenheld лет назад: 19
Родитель
Сommit
01d4338076
2 измененных файлов с 11 добавлено и 0 удалено
  1. 5 0
      man/ChangeLog
  2. 6 0
      man/Makefile.am

+ 5 - 0
man/ChangeLog

@@ -1,3 +1,8 @@
+2007-10-12  Frank Lichtenheld  <djpig@debian.org>
+
+	* Makefile.am (update-po): New target to easily
+	update the .pot and .po files. Uses po4a --force.
+
 2007-10-11  Helge Kreutzmann  <debian@helgefjell.de>
 
 	* po/de.po: Updated to 1279t0f64u.

+ 6 - 0
man/Makefile.am

@@ -13,6 +13,11 @@ clean-local:
 		$(srcdir)/po/po4a.cfg
 	rm -f man.stamp
 
+update-po:
+	cd $(srcdir)/po && \
+		po4a --no-backups --force --variable srcdir=../../man \
+			./po4a.cfg 
+
 # Extract the list of languages from the po4a config file.
 LINGUAS = $(shell sed -ne 's/^.*\[po4a_langs\] \(.*\)$$/\1/p' $(srcdir)/po/po4a.cfg)
 
@@ -87,3 +92,4 @@ EXTRA_DIST = \
 	po/po4a.cfg \
 	po/dpkg-man.pot
 
+.PHONY: update-po