File: update-potfiles.sh

package info (click to toggle)
gwyddion 2.62-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 51,952 kB
  • sloc: ansic: 398,486; python: 7,877; sh: 5,492; makefile: 4,723; xml: 3,883; cpp: 1,969; pascal: 418; perl: 154; ruby: 130
file content (15 lines) | stat: -rwxr-xr-x 498 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
exec >'po/POTFILES.in'

# Keep the `GENERATED' string quoted to prevent match here
echo '# List of source files containing translatable strings.'
echo '# This is a 'GENERATED' file, by utils/update-potfiles.sh.'

for dir in libgwyddion libprocess libdraw libgwydgets libgwymodule app gwyddion modules; do
  echo
  echo "# $dir"
  find $dir -name '*.[ch]' -o -name '*.cc' \
    | xargs grep -E -l '\<N?_\(|\<gwy_sgettext\(' \
    | grep -E -v '/(main|test|pygwywrap)\.c' \
    | sort
done