diff options
Diffstat (limited to 'scripts/generate_gettext_pot.sh')
| -rwxr-xr-x | scripts/generate_gettext_pot.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/generate_gettext_pot.sh b/scripts/generate_gettext_pot.sh index 8a0ffb8..48c0787 100755 --- a/scripts/generate_gettext_pot.sh +++ b/scripts/generate_gettext_pot.sh @@ -1,5 +1,6 @@ #!/bin/bash -pushd ../ > /dev/null +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 cd po/ find ./ -name \*.po -print | xargs -i msgmerge -U {} tuxanci.pot |