generate_POTFILES.sh revision d3d45b6755c6a8614cbc4c74cda69ecb1274918a
set -e
echo "Generating updated POTFILES list..."
cd "$mydir"
if [ . = "$mydir" ]; then
prog="$0"
else
fi
(
echo "# List of source files containing translatable strings."
echo "# Please keep this file sorted alphabetically."
echo "[encoding: UTF-8]"
echo "inkscape.desktop.in"
find src \( -name '*.cpp' -o -name '*.[ch]' \) -type f -print0 | xargs -0 egrep -l '(\<[QNC]?_|gettext) *\(' | sort
find share/extensions -name '*.py' -type f -print0 | xargs -0 egrep -l '(\<[QNC]?_|gettext) *\(' | sort
echo "Done."