summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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