Remove commented out code.
[geeqie.git] / po / regen_potfiles.sh
index d0e4b89..640442d 100755 (executable)
@@ -1,3 +1,10 @@
 #!/bin/sh
 
-(cd .. ; grep -l 'N\?_[[:space:]]*(.*)' ./src/*.c) > POTFILES.in
+#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