File: regen_potfiles.sh

package info (click to toggle)
geeqie 1%3A2.5-8
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 16,780 kB
  • sloc: cpp: 110,189; xml: 11,497; sh: 3,681; awk: 124; perl: 88; python: 80; makefile: 23
file content (16 lines) | stat: -rwxr-xr-x 511 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

## @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"