mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
791acb4611
version.sh: move from maint/utils to the root of the source tree and make it a part of distributable tarball. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
28 lines
597 B
Bash
Executable File
28 lines
597 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 -ne '/^#:/{s/#://;s/:[0-9]*/\
|
|
/g;s/ //g;p;}' | \
|
|
grep -v '^$' | sort | uniq >po/POTFILES.in
|
|
|
|
cd src/vfs/smbfs/helpers
|
|
date -u >include/stamp-h.in
|
|
|
|
$srcdir/version.sh "$srcdir"
|
|
|
|
if test -x $srcdir/configure.mc; then
|
|
$srcdir/configure.mc "$@"
|
|
fi
|