Commit 8eae8e97 authored by andre's avatar andre

Added clean function

Added totally elite ascii art


git-svn-id: http://svn.annodex.net/liboggz/trunk@366 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent 5940bca3
#!/bin/sh
# autogoat!
# an omnivorous assistant for autotools
#
# (__)
# (oo)
# /------\/
# / | ||
# * /\---/\
# ~~ ~~
# clean function
clean ()
{
# remove autotools cruft
rm -f aclocal.m4 configure config.log
rm -Rf autom4te.cache
# remove old autotools extra cruft
rm -f config.guess config.sub missing mkinstalldirs compile depcomp install-sh
# remove libtool cruft
rm -f ltmain.sh libtool ltconfig
}
#
# option checking
#
if test "x$1" = "xclean"; then
set -x
clean
set +x
exit 0
fi
#
# check automake version number -- we require >= 1.5
......@@ -44,26 +78,15 @@ fi
# autogoat bootstrap process
#
# clean out old cruft
clean
ACLOCAL=${ACLOCAL:-aclocal}
AUTOCONF=${AUTOCONF:-autoconf}
AUTOHEADER=${AUTOHEADER:-autoheader}
AUTOMAKE=${AUTOMAKE:-automake}
# remove autotools cruft
rm -f aclocal.m4 configure config.log
rm -Rf autom4te.cache
# remove old autotools extra cruft
rm -f config.guess config.sub missing mkinstalldirs compile depcomp install-sh
# remove libtool cruft
rm -f ltmain.sh libtool ltconfig
# add Fink's /sw path to various search directories
if [ -d /sw ]; then
ACLOCAL="$ACLOCAL -I /sw/share/aclocal"
FINK_DETECTED=1
fi
eval "$ACLOCAL"
"$ACLOCAL"
# do we need libtool?
if grep -q PROG_LIBTOOL configure.*; then
......@@ -88,23 +111,6 @@ if grep -q PROG_LIBTOOL configure.*; then
fi
fi
eval "$AUTOCONF"
"$AUTOCONF"
grep -q CONFIG_HEADER configure.* && "$AUTOHEADER"
eval "$AUTOMAKE" --add-missing --copy
# Print warning message if Fink detected
if test "$FINK_DETECTED" = 1; then
cat << EOF
Fink detected; added /sw/share/aclocal to aclocal's include directories.
Make sure you have CPPFLAGS, LDFLAGS and PKG_CONFIG_PATH including Fink's
distribution directories, e.g.:
export CPPFLAGS="-I/sw/include \$CPPFLAGS"
export LDFLAGS="-L/sw/lib \$LDFLAGS"
export PKG_CONFIG_PATH="/sw/lib/pkgconfig:\$PKG_CONFIG_PATH"
./configure
EOF
fi
"$AUTOMAKE" --add-missing --copy
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment