diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 11:50:49 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 11:50:49 +0000 |
commit | c853ffb5b2f75f5a889ed2e3ef89b818a736e87a (patch) | |
tree | 7d13a0883bb7936b84d6ecdd7bc332b41ed04bee /po/generate_POTFILES.sh | |
parent | Initial commit. (diff) | |
download | inkscape-c853ffb5b2f75f5a889ed2e3ef89b818a736e87a.tar.xz inkscape-c853ffb5b2f75f5a889ed2e3ef89b818a736e87a.zip |
Adding upstream version 1.3+ds.upstream/1.3+dsupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'po/generate_POTFILES.sh')
-rwxr-xr-x | po/generate_POTFILES.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/po/generate_POTFILES.sh b/po/generate_POTFILES.sh new file mode 100755 index 0000000..18de68d --- /dev/null +++ b/po/generate_POTFILES.sh @@ -0,0 +1,32 @@ +#! /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 "\${_build_dir}/share/filters/filters.svg.h" + echo "\${_build_dir}/share/markers/markers.svg.h" + echo "\${_build_dir}/share/palettes/palettes.h" + echo "\${_build_dir}/share/paint/patterns.svg.h" + echo "\${_build_dir}/share/symbols/symbols.h" + echo "\${_build_dir}/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 |