2016-04-27 23:14:25 +03:00
|
|
|
#!/bin/sh
|
1998-11-23 01:04:09 +03:00
|
|
|
|
2002-09-26 01:53:38 +04:00
|
|
|
set -e
|
|
|
|
|
2024-07-27 22:17:52 +03:00
|
|
|
# Use backticks to support ksh on Solaris
|
|
|
|
basedir=`dirname "$0"`
|
|
|
|
srcdir=`cd "$basedir" && pwd`
|
2002-09-26 01:53:38 +04:00
|
|
|
|
2003-12-03 01:53:07 +03:00
|
|
|
cd "$srcdir"
|
2001-04-06 22:01:31 +04:00
|
|
|
|
2016-04-27 23:14:25 +03:00
|
|
|
${AUTORECONF:-autoreconf} --verbose --install --force -I m4 ${AUTORECONF_FLAGS}
|
2001-09-12 23:18:38 +04:00
|
|
|
|
2016-04-27 23:14:25 +03:00
|
|
|
# Customize the INSTALL file
|
2024-09-24 12:34:14 +03:00
|
|
|
rm -f INSTALL && ln -s doc/INSTALL .
|
2001-07-31 22:05:26 +04:00
|
|
|
|
2004-01-27 00:40:30 +03:00
|
|
|
# Generate po/POTFILES.in
|
2024-09-24 12:34:14 +03:00
|
|
|
if ! xgettext -h 2>&1 | grep -e '--keyword=' >/dev/null ; then
|
|
|
|
echo "gettext is unable to extract translations, set XGETTEXT to GNU gettext!" >&2
|
|
|
|
else
|
|
|
|
${XGETTEXT:-xgettext} --keyword=_ --keyword=N_ --keyword=Q_ --output=- \
|
2023-05-19 18:06:02 +03:00
|
|
|
`find . -name '*.[ch]'` | ${SED-sed} -ne '/^#:/{s/#://;s/:[0-9]*/\
|
2004-08-02 16:37:22 +04:00
|
|
|
/g;s/ //g;p;}' | \
|
2011-05-25 17:59:27 +04:00
|
|
|
grep -v '^$' | sort | uniq >po/POTFILES.in
|
2024-09-24 12:34:14 +03:00
|
|
|
fi
|
2004-01-27 00:40:30 +03:00
|
|
|
|
2024-09-24 12:34:14 +03:00
|
|
|
"$srcdir/version.sh" "$srcdir"
|
2009-06-16 21:40:24 +04:00
|
|
|
|
2024-09-24 12:34:14 +03:00
|
|
|
if test -x "$srcdir/configure.mc"; then
|
|
|
|
"$srcdir/configure.mc" "$@"
|
2002-11-29 09:39:41 +03:00
|
|
|
fi
|