00boot 1.19 KB
Newer Older
1 2
#!/bin/sh

3
## function to print error message and exit
4
fail () {
5
  echo "!!! $0: $1" >&2
6 7 8
  exit 1
}

9 10
## check script is being run from top-level source directory
test "$0" = "./00boot" || fail "must be run from top-level source directory"
11

12 13 14
## remove M4 cache files
rm -rf autom4te.cache/
rm -f aclocal.m4
15

16 17 18 19 20 21 22 23
# FIXME: autoreconf from Ubuntu 9.10 (and probably also from recent
# Debian versions) automatically run libtoolize with the --copy option
# therefore over writing the supplied libtool scripts with system
# version. This can lead to unexpected build failures therefore to work
# round this "feature" we set the LIBTOOLIZE enviroment variable to
# point to the the true executable which bypasses the running of
# libtoolize, this will not effect the vast majority of users and those
# it will effect will know how to run libtoolize, if required.
24

25 26 27 28
## run autoreconf
AUTORECONF=${AUTORECONF:-"autoreconf"}
echo "00boot: running ${AUTORECONF}"
LIBTOOLIZE=true ${AUTORECONF} || fail "${AUTORECONF} failed"
29

30 31 32 33 34 35 36
echo "
==================================================
00boot has been run successfully.
Now run './configure' with appropriate options
to configure LALSuite.
==================================================
"