summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomáš Chvátal <scarabeus@gentoo.org>2009-05-26 23:14:55 +0200
committerTomáš Chvátal <scarabeus@gentoo.org>2009-05-26 23:14:55 +0200
commitf3668cac0f582783828e068b4adfc3767152a493 (patch)
tree5621963714a14657b56502f5f1ae4ec404d3f8c7
parent1d85a7a35e377a9263a4a19f442dd2f57a5c19c4 (diff)
Update pot/po generating script.
-rwxr-xr-xscripts/generate_gettext_pot.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/generate_gettext_pot.sh b/scripts/generate_gettext_pot.sh
index 48c0787..4ac038e 100755
--- a/scripts/generate_gettext_pot.sh
+++ b/scripts/generate_gettext_pot.sh
@@ -1,7 +1,8 @@
#!/bin/bash
PWD=$(pwd)
[[ ${PWD/*\//} = scripts ]] && pushd .. > /dev/null || pushd . > /dev/null
-xgettext --default-domain=tuxanci --add-comments=/// -k_ `find ./ -name \*.c | grep -v .git | tr '\n' ' '` -o ./po/tuxanci.pot
+xgettext --no-wrap --width 1 --default-domain=tuxanci --add-comments=/// -k_ `find ./ -name \*.c | grep -v .git | sort | uniq | tr '\n' ' '` -o ./po/tuxanci.pot
cd po/
-find ./ -name \*.po -print | xargs -i msgmerge -U {} tuxanci.pot
+find ./ -name \*.po -print | xargs -i msgmerge --no-wrap --width 1 -U {} tuxanci.pot
+rm -rf \*~
popd > /dev/null