Code

Updated the po/POTFILES.in to reflect the new set of translatable files in source...
[inkscape.git] / generate_POTFILES.sh
1 #!/bin/bash
3 echo "Generating updated POTFILES list..."
5 echo "# List of source files containing translatable strings.
6 # Please keep this file sorted alphabetically.
7 # Generated from script by mfx at" `date` "
8 [encoding: UTF-8]
9 inkscape.desktop.in" >po/POTFILES.in.new
11 grep -r -l -I "_(" src/ | grep -E ".(cpp|c|h)$" | sort >>po/POTFILES.in.new
12 find share/extensions -name "*.inx" | sort | xargs -n 1 printf "[type: gettext/xml] %s\n" >>po/POTFILES.in.new
13 diff po/POTFILES.in po/POTFILES.in.new -q
14 mv po/POTFILES.in.new po/POTFILES.in
15 echo "Done."