blob: e1537151ba1afd70f7f8ce3199d13c6f0747152f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#! /bin/sh
set -e
echo "Generating updated POTFILES list..."
mydir=`dirname "$0"`
cd "$mydir"
# enforce consistent sort order and date format
export LC_ALL=C
(
echo "../share/filters/filters.svg.h"
echo "../share/palettes/palettes.h"
echo "../share/paint/patterns.svg.h"
echo "../share/symbols/symbols.h"
echo "../share/templates/templates.h"
find ../src \( -name '*.cpp' -o -name '*.[ch]' \) -type f -print0 | xargs -0 egrep -l '(\<[QNC]?_|gettext) *\(' | sort
) | grep -vx -f POTFILES.skip > POTFILES.src.in
find ../share/extensions -name '*.py' -type f -print0 | xargs -0 egrep -l '(\<[QNC]?_|gettext) *\(' | grep -vx -f POTFILES.skip | sort > POTFILES.py.in
find ../share/extensions -name '*.inx' -type f -print | grep -vx -f POTFILES.skip | sort > POTFILES.inx.in
# Keep .glade files and .ui files separated.
(
find ../share/ui -name '*.glade' -type f -print0 | xargs -0 egrep -l 'translatable' | sort
find ../share/ui -name '*.ui' -type f -print0 | xargs -0 egrep -l 'translatable' | sort
) | grep -vx -f POTFILES.skip > POTFILES.ui.in
|