[Apt-listbugs-commits] [SCM] apt-listbugs development tree branch, master, updated. apt-listbugs/0.1.7-7-gd38b80e
Francesco Poli (wintermute)
invernomuto at paranoici.org
Wed Jul 18 21:44:43 UTC 2012
The following commit has been merged in the master branch:
commit d25c02f54f8746983be268e9632bfa8ba530b82d
Author: Francesco Poli (wintermute) <invernomuto at paranoici.org>
Date: Wed Jul 18 22:17:10 2012 +0200
improve .pot file generation
Some fields may be filled through appropriate options passed to
xgettext: that's better than filling them by hand...
diff --git a/Makefile b/Makefile
index eea3bd1..eb89fc3 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
LINGUAS := $(shell cd po; ls *.po| cut -d'.' -f1)
MOFILES := $(patsubst %.po,%.mo,$(wildcard po/*.po))
+VERSION := $(shell env LC_ALL=C dpkg-parsechangelog | sed -n 's/^Version: //p')
.PHONY: all
all: apt-listbugs.1 $(MOFILES)
@@ -20,9 +21,15 @@ apt-listbugs.1: apt-listbugs
.PHONY: update-po
update-po:
- xgettext --add-comments=TRANSLATORS --language=python apt-listbugs lib/apt-listbugs/logic.rb -o po/apt-listbugs.pot
+ xgettext --add-comments=TRANSLATORS --no-wrap \
+ --copyright-holder="Masato Taruishi et al." \
+ --package-name=apt-listbugs --package-version=$(VERSION) \
+ --msgid-bugs-address=$$DEBEMAIL \
+ --language=python \
+ apt-listbugs lib/apt-listbugs/logic.rb \
+ -o po/apt-listbugs.pot
for po in $(LINGUAS); do \
- msgmerge -U po/$$po.po po/apt-listbugs.pot; \
+ msgmerge --no-wrap -U po/$$po.po po/apt-listbugs.pot; \
done
for po in $(LINGUAS); do \
echo -n $$po ": "; \
--
apt-listbugs development tree
More information about the Apt-listbugs-commits
mailing list