set -e
echo "Generating updated POTFILES list..."
cd "$mydir"
if [ . = "$mydir" ]; then
prog="$0"
else
fi
(
# enforce consistent sort order and date format
export LC_ALL=C
echo "# List of source files containing translatable strings."
echo "# Please keep this file sorted alphabetically."
echo "[encoding: UTF-8]"
echo "inkscape.appdata.xml.in"
echo "inkscape.desktop.in"
echo "share/filters/filters.svg.h"
echo "share/palettes/palettes.h"
echo "share/patterns/patterns.svg.h"
echo "share/templates/templates.h"
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
#do not include files from POTFILES.skip in the generated list
echo "Done."
echo ""
echo "Now you need to run 'make distcheck' to find all the"
echo "places that get broken because of this script."