mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
Generate po/POTFILES.in automatically.
This commit is contained in:
parent
2ac67e670a
commit
a1e579c415
@ -11,6 +11,7 @@ set -e
|
|||||||
: ${ACLOCAL=aclocal}
|
: ${ACLOCAL=aclocal}
|
||||||
: ${GETTEXTIZE=gettextize}
|
: ${GETTEXTIZE=gettextize}
|
||||||
: ${AUTOPOINT=autopoint}
|
: ${AUTOPOINT=autopoint}
|
||||||
|
: ${XGETTEXT=xgettext}
|
||||||
|
|
||||||
srcdir=`dirname $0`
|
srcdir=`dirname $0`
|
||||||
test -z "$srcdir" && srcdir=.
|
test -z "$srcdir" && srcdir=.
|
||||||
@ -65,6 +66,12 @@ else
|
|||||||
fi
|
fi
|
||||||
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"
|
ACLOCAL_INCLUDES="-I m4"
|
||||||
|
|
||||||
# Some old version of GNU build tools fail to set error codes.
|
# Some old version of GNU build tools fail to set error codes.
|
||||||
|
Loading…
Reference in New Issue
Block a user