Mercurial > geeqie
comparison po/regen_potfiles.sh @ 1681:351dd18c7db0
Fix POTFILES.in and update regen_potfiles.sh to add .desktop.in files.
author | zas_ |
---|---|
date | Mon, 29 Jun 2009 16:02:28 +0000 |
parents | 4581d3f03d22 |
children |
comparison
equal
deleted
inserted
replaced
1680:025a9139b15d | 1681:351dd18c7db0 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 #generate a patch to update POTFILES.in | 3 #generate a patch to update POTFILES.in |
4 #Use like this: ./regen_potfiles.sh | patch -p0 | 4 #Use like this: ./regen_potfiles.sh | patch -p0 |
5 (cd .. ; grep -l 'N\?_[[:space:]]*(.*)' ./src/*.c) > POTFILES.in.$$ | 5 TMP=POTFILES.in.$$ |
6 diff -u POTFILES.in POTFILES.in.$$ | 6 ((find ../src/ -type f -name '*.c' ; find ../ -type f -name '*.desktop.in') | while read f; do |
7 rm -f POTFILES.in.$$ | 7 (echo $f | sed 's#^../##') |
8 done) | sort > $TMP | |
9 diff -u POTFILES.in $TMP | |
10 rm -f $TMP |