summaryrefslogtreecommitdiff
path: root/scripts/generate_gettext_pot.sh
blob: 48c0787eb94d55a6cdecc658781b977422d9b675 (plain)
1
2
3
4
5
6
7
#!/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
cd po/
find ./ -name \*.po -print | xargs -i msgmerge -U {} tuxanci.pot
popd > /dev/null