mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
f45d02ba2a
Sometimes system default sed is not the best option. With this modification user may easily override sed used by build system without editing any file. Signed-off-by: Karlson2k (Evgeny Grin) <k2k@narod.ru> Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
25 lines
550 B
Bash
Executable File
25 lines
550 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
srcdir="$(cd "$(dirname "$0")" && pwd)"
|
|
|
|
cd "$srcdir"
|
|
|
|
${AUTORECONF:-autoreconf} --verbose --install --force -I m4 ${AUTORECONF_FLAGS}
|
|
|
|
# Customize the INSTALL file
|
|
rm -f INSTALL && ln -s doc/INSTALL
|
|
|
|
# Generate po/POTFILES.in
|
|
${XGETTEXT:-xgettext} --keyword=_ --keyword=N_ --keyword=Q_ --output=- \
|
|
`find . -name '*.[ch]'` | ${SED-sed} -ne '/^#:/{s/#://;s/:[0-9]*/\
|
|
/g;s/ //g;p;}' | \
|
|
grep -v '^$' | sort | uniq >po/POTFILES.in
|
|
|
|
$srcdir/version.sh "$srcdir"
|
|
|
|
if test -x $srcdir/configure.mc; then
|
|
$srcdir/configure.mc "$@"
|
|
fi
|