Generate po/POTFILES.in automatically.

This commit is contained in:
Pavel Roskin 2004-01-26 21:40:30 +00:00
parent 2ac67e670a
commit a1e579c415
1 changed files with 7 additions and 0 deletions

View File

@ -11,6 +11,7 @@ set -e
: ${ACLOCAL=aclocal}
: ${GETTEXTIZE=gettextize}
: ${AUTOPOINT=autopoint}
: ${XGETTEXT=xgettext}
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
@ -65,6 +66,12 @@ else
fi
fi
# Generate po/POTFILES.in
$XGETTEXT --keyword=_ --keyword=N_ --output=- --stringtable-output \
`find -name '*.[ch]'` | \
sed -ne 's/^\/\* File: \([^:]*\):.*$/\1/p' | sort | \
uniq | grep -v 'regex.c' >po/POTFILES.in
ACLOCAL_INCLUDES="-I m4"
# Some old version of GNU build tools fail to set error codes.