#! /bin/sh
### -*-sh-*-
###
-### Create links to the repository
+### Set up a new project
###
### (c) 1997 Mark Wooding
###
###--------------------------------------------------------------------------
### Do any initial local stuff.
-[ -x build-setup ] && ./build-setup start
+if [ -x build-setup ]; then ./build-setup start; fi
###--------------------------------------------------------------------------
### Grind through the Autoconf machinery.
[ -f $i ] && configure=$i
done
if [ "$configure" ]; then
- grep >/dev/null AM_PROG_LIBTOOL $configure && libtoolize
+ grep >/dev/null AM_PROG_LIBTOOL $configure && libtoolize -f
find . -name Makefile.m4 -print | while read m4; do
dir=$(echo $m4 | sed 's:/[^/]*$::')
(cd $dir &&
autoconf --force
if grep >/dev/null 'AC_CONFIG_AUX_DIR' $configure; then
auxdir=$(
- sed -n 's:^.*AC_CONFIG_AUX_DIR(\[\?\([^])]*\)\]\?).*$:\1:p' $configure)
+ sed -n 's:^.*AC_CONFIG_AUX_DIR(\[\{0,1\}\([^])]*\)\]\{0,1\}).*$:\1:p' $configure)
mkdir -p $auxdir
fi
grep >/dev/null 'A[MC]_CONFIG_HEADER' $configure && autoheader
###--------------------------------------------------------------------------
### Do any final local stuff.
-[ -x build-setup ] && ./build-setup end
+if [ -x build-setup ]; then ./build-setup end; fi
###------ That's all, folks -------------------------------------------------