Code

mv GNU toolchain check into tools/setup
[nagiosplug.git] / autogen.sh
1 #!/bin/sh
2 #
3 # $Id$
4 #
5 # Requires: automake, autoconf, dpkg-dev
6 # set -e
8 ./tools/setup
10 # For the Debian build
11 test -d debian && {
12         # Kill executable list first
13         rm -f debian/executable.files
15         # Make sure our executable and removable lists won't be screwed up
16         debclean && echo Cleaned buildtree just in case...
18         # refresh list of executable scripts, to avoid possible breakage if
19         # upstream tarball does not include the file or if it is mispackaged
20         # for whatever reason.
21         echo Generating list of executable files...
22         rm -f debian/executable.files
23         find -type f -perm +111 ! -name '.*' -fprint debian/executable.files
25         # link these in Debian builds
26         rm -f config.sub config.guess
27         ln -s /usr/share/misc/config.sub .
28         ln -s /usr/share/misc/config.guess .
29 }
31 ./configure $*
33 exit 0