procps/po/update-potfiles
Craig Small f0c5cf279d build-sys: Ignore temp directory for POTFILES.in
Sometimes the testing sequence would leave a source tree
under procps-ng-(version) which, if update-potfiles was
run, would include these temporary files in the list, causing issues
later.

The script now explicitly ignores those temporary files.
2021-01-28 22:35:33 +11:00

15 lines
238 B
Bash
Executable File

#!/bin/sh
if [ ! -f "po/Makevars" ]; then
echo "You must run this script in the top-level directory"
exit 1
fi
find . -name '*.c' |
sort |
sed 's|^./||
/^contrib/d
/^procps-ng/d' > po/POTFILES.in
echo include/c.h >> po/POTFILES.in