From fff902c6a23149afabe41acef214aaa42a5f2feb Mon Sep 17 00:00:00 2001 From: Bryan Jurish Date: Thu, 2 Aug 2007 22:45:40 +0000 Subject: *** empty log message *** svn path=/trunk/; revision=8358 --- externals/sprinkler/autogen.sh | 48 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 46 insertions(+), 2 deletions(-) (limited to 'externals/sprinkler/autogen.sh') diff --git a/externals/sprinkler/autogen.sh b/externals/sprinkler/autogen.sh index b7793874..629feb1a 100755 --- a/externals/sprinkler/autogen.sh +++ b/externals/sprinkler/autogen.sh @@ -1,4 +1,48 @@ #!/bin/sh -autoconf -pod2text README.pod README.txt +#----------------------------------------------------------------------- +# File: autogen.sh +# Description: +# + wrapper for m4 black-magic +#----------------------------------------------------------------------- + +MY_ALDIRS="." +MY_AHDIRS="" +MY_AMDIRS="." +MY_ACDIRS="." + +test -z "$ACLOCAL" && ACLOCAL=aclocal +test -z "$AUTOHEADER" && AUTOHEADER=autoheader +test -z "$AUTOMAKE" && AUTOMAKE=automake +test -z "$AUTOCONF" && AUTOCONF=autoconf + +if test -n "$MY_ALDIRS"; then + for d in $MY_ALDIRS ; do + echo "(cd $d ; $ACLOCAL)" + (cd $d ; $ACLOCAL) + done +fi + +if test -n "$MY_AHDIRS"; then + for d in $MY_AHDIRS ; do + echo "(cd $d ; $AUTOHEADER)" + (cd $d ; $AUTOHEADER) + done +fi + +if test -n "$MY_AMDIRS"; then + for d in $MY_AMDIRS ; do + echo "(cd $d ; $AUTOMAKE -a)" + (cd $d ; $AUTOMAKE -a) + done +fi + +if test -n "$MY_ACDIRS"; then + for d in $MY_ACDIRS ; do + echo "(cd $d ; $AUTOCONF)" + (cd $d ; $AUTOCONF) + done +fi + +#echo "(./configure)" +#./configure $* -- cgit v1.2.1