Code

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