1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
#! /bin/sh -e
nls=--disable-nls
clean=no
include_deps=yes
while true; do
if [ "$1" = "--enable-nls" ]; then
nls=
elif [ "$1" = "--disable-nls" ]; then
nls=--disable-nls
elif [ "$1" = "--clean" ]; then
clean=yes
elif [ "$1" = "--not-clean" ]; then
clean=no
elif [ "$1" = "--no-include-deps" ]; then
include_deps=no
elif [ "$1" = "--include-deps" ]; then
include_deps=yes
elif [ "$1" = "--help" ]; then
echo "Usage: $0 [--enable-nls] [--clean] [--include-deps] ..."
exit 0
else
break
fi
shift
done
# Extract PSPP version number.
VERSION=`sed -ne 's/^.*\[//;s/].*$//;/^[0-9]*\.[0-9]*\.[0-9]*$/p' < configure.in`
if [ "$clean" = "no" ]; then
echo "Generating a Makefile for cleaning..."
if [ ! -f Makefile ]; then
aclocal
autoheader
make -f Makefile.am docfiles VERSION=$VERSION
automake --foreign
autoconf
./configure $nls $*
fi
echo "Cleaning the distribution..."
make -k maintainer-clean || true
fi
echo "Configuring..."
aclocal
autoheader
make -f Makefile.am docfiles VERSION=$VERSION
automake
autoconf
./configure $nls $*
make mostlyclean || true # This causes dependencies to be generated
if [ "$include_deps" = "yes" ]; then
echo "Configuring with included dependencies..."
automake --include-deps
autoconf
./configure $nls $*
fi
|