Fix gettext use with Meson
[geeqie.git] / po / regen_potfiles.sh
1 #!/bin/sh
2
3 ## @file
4 ## @brief Generate a patch to update POTFILES
5 ##
6 ## Use like this: ./regen_potfiles.sh | patch -p0
7 ##
8
9 TMP=POTFILES.$$
10 ((find ../src/ -type f -name '*.c' ; find ../ -type f -name '*.desktop.in' ; find ../ -type f -name '*.appdata.xml.in') | while read f; do
11         (echo $f | sed 's#^../##')
12 done) | sort > $TMP
13 diff -u POTFILES $TMP
14 rm -f $TMP