mirror of https://github.com/MidnightCommander/mc
Generate po/POTFILES.in automatically.
This commit is contained in:
parent
2ac67e670a
commit
a1e579c415
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue