When mixer is not available, recommend SDL2_mixer instead of SDL1.2 mixer
[freeciv.git] / scripts / potfiles
blobcca98a94ba38d0584717774755d538d26104b1a7
1 #!/bin/bash
3 domains="freeciv nations ruledit"
5 if test "$1" == "" ; then
6 echo Usage: $0 '<path to source root directory with trailing slash>'
7 exit 1;
8 fi
10 for domain in $domains ; do
11 if ! test -f $1/translations/$domain/POTFILES.in ; then
12 echo "Cannot find $1/translations/$domain/POTFILES.in" >&2
13 exit 1
15 POTLIST="$POTLIST $1/translations/$domain/POTFILES.in"
16 done
18 cat $POTLIST | grep -v "^#" | sed "s,^,$1," | sort > /tmp/potfile
20 echo Suggestions for addition or removal of files with translatable strings to/from POTFILES.in:
21 echo Please check the output manually
23 find "$1" -name '*.c' -o -name '*.cpp' -o -name '*.h' -o -name '*.sav' -o -name '*.lua' -o -name '*.ruleset' -o -name '*.txt' -o -name '*.in' |
24 xargs grep -l -I '_("' |
25 sort |
26 diff -u /tmp/potfile - |
27 egrep '^[+-]'