Calculate pauses in file operations.
[midnight-commander.git] / autogen.sh
bloba37064c6a026e97a51556f4d984e0b38497d96f1
1 #!/bin/sh
3 set -e
5 # Use backticks to support ksh on Solaris
6 basedir=`dirname "$0"`
7 srcdir=`cd "$basedir" && pwd`
9 cd "$srcdir"
11 ${AUTORECONF:-autoreconf} --verbose --install --force -I m4 ${AUTORECONF_FLAGS}
13 # Customize the INSTALL file
14 rm -f INSTALL && ln -s doc/INSTALL .
16 # Generate po/POTFILES.in
17 if ! xgettext -h 2>&1 | grep -- '--keyword' >/dev/null ; then
18 echo "gettext is unable to extract translations, set XGETTEXT to GNU gettext!" >&2
19 touch po/POTFILES.in
20 else
21 ${XGETTEXT:-xgettext} --keyword=_ --keyword=N_ --keyword=Q_ --output=- \
22 `find . -name '*.[ch]'` | ${SED-sed} -ne '/^#:/{s/#://;s/:[0-9]*/\
23 /g;s/ //g;p;}' | \
24 grep -v '^$' | sort | uniq >po/POTFILES.in
27 "$srcdir/version.sh" "$srcdir"
29 if test -x "$srcdir/configure.mc"; then
30 "$srcdir/configure.mc" "$@"