annotate po/regen_potfiles.sh @ 1811:f405ec9b696b default tip

Some small logic mistakes Use boolean operators for booleans and bitwise otherwise only.
author mow
date Mon, 10 May 2010 11:33:13 +0000
parents 351dd18c7db0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
584
4609c84c9ce0 Add an helper script to regenerate POTFILES.in file.
zas_
parents:
diff changeset
1 #!/bin/sh
4609c84c9ce0 Add an helper script to regenerate POTFILES.in file.
zas_
parents:
diff changeset
2
588
4581d3f03d22 Modify regen_potfiles.sh to generate a patch instead of
zas_
parents: 584
diff changeset
3 #generate a patch to update POTFILES.in
4581d3f03d22 Modify regen_potfiles.sh to generate a patch instead of
zas_
parents: 584
diff changeset
4 #Use like this: ./regen_potfiles.sh | patch -p0
1681
351dd18c7db0 Fix POTFILES.in and update regen_potfiles.sh to add .desktop.in files.
zas_
parents: 588
diff changeset
5 TMP=POTFILES.in.$$
351dd18c7db0 Fix POTFILES.in and update regen_potfiles.sh to add .desktop.in files.
zas_
parents: 588
diff changeset
6 ((find ../src/ -type f -name '*.c' ; find ../ -type f -name '*.desktop.in') | while read f; do
351dd18c7db0 Fix POTFILES.in and update regen_potfiles.sh to add .desktop.in files.
zas_
parents: 588
diff changeset
7 (echo $f | sed 's#^../##')
351dd18c7db0 Fix POTFILES.in and update regen_potfiles.sh to add .desktop.in files.
zas_
parents: 588
diff changeset
8 done) | sort > $TMP
351dd18c7db0 Fix POTFILES.in and update regen_potfiles.sh to add .desktop.in files.
zas_
parents: 588
diff changeset
9 diff -u POTFILES.in $TMP
351dd18c7db0 Fix POTFILES.in and update regen_potfiles.sh to add .desktop.in files.
zas_
parents: 588
diff changeset
10 rm -f $TMP