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
|
#!/bin/sh
#
# wavbreaker autogen.sh
#
# Thomas Perl <thp@perli.net> 2007-03-11
#
echo -n "Cleaning up..."
make distclean || make clean
rm -rf aclocal.m4 autom4te.cache config.h.in config.h config.status configure depcomp INSTALL install-sh missing po/stamp-po po/*.gmo
find . -name 'Makefile.in' | xargs rm -f
find . -name 'Makefile' | xargs rm -f
echo "done."
if [ "$1" == "clean" ]; then
exit 0
fi
echo -n "Running automake stuff..."
aclocal -I m4
autoheader
automake --add-missing --copy
automake
autoconf
echo "done."
if [ "$1" == "release" ]; then
VERSION=`grep ^PACKAGE_VERSION= configure | cut -d\' -f2`
mkdir -p .release_tmp/wavbreaker-$VERSION
cp -rpv * .release_tmp/wavbreaker-$VERSION/
tar czvf wavbreaker-$VERSION.tar.gz --exclude=.svn -C .release_tmp wavbreaker-$VERSION
rm -rf .release_tmp
echo "--> wavbreaker-$VERSION.tar.gz"
exit 0
fi
if [ "$1" == "configure" ]; then
shift
./configure $*
exit 0
fi
|