File: autogen.sh

package info (click to toggle)
wavbreaker 0.9-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,272 kB
  • ctags: 577
  • sloc: ansic: 5,945; sh: 3,968; makefile: 96; sed: 16
file content (43 lines) | stat: -rwxr-xr-x 967 bytes parent folder | download
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