Fix FIXME: Emblems should be attached to icons via
[geeqie.git] / po / regen_potfiles.sh
index 640442d..dcddf44 100755 (executable)
@@ -1,10 +1,16 @@
 #!/bin/sh
 
-#generate a patch to update POTFILES.in
-#Use like this: ./regen_potfiles.sh | patch -p0
-TMP=POTFILES.in.$$
-((find ../src/ -type f -name '*.c' ; find ../ -type f -name '*.desktop.in') | while read f; do
-       (echo $f | sed 's#^../##')
-done) | sort > $TMP
-diff -u POTFILES.in $TMP
-rm -f $TMP
+## @file
+## @brief Generate a patch to update POTFILES
+##
+## Use like this: ./regen_potfiles.sh | patch -p0
+##
+
+# TODO(xsdg): Re-write this in a simpler way and test that it works: (cd ..; find ... | sort > $TMP)
+
+TMP=POTFILES.$$
+( (find ../src/ -type f \( -name '*.c' -o -name '*.cc' -o -name "*.ui" \) ; find ../ -type f -name '*.desktop.in' ; find ../ -type f -name '*.appdata.xml.in') | while read -r f; do
+       (echo "$f" | sed 's#^../##')
+done) | sort > "$TMP"
+diff -u POTFILES "$TMP"
+rm -f "$TMP"