On peut desormais charger qu'une partie de l'arbre

et faire un autostuff sur un repertoire precis
This commit is contained in:
Francois Donnet 2002-03-22 09:52:01 +00:00
parent f9486cdd79
commit 90cb8f0a80
2 changed files with 18 additions and 3 deletions

View File

@ -1,5 +1,11 @@
#!/bin/sh #!/bin/sh
###################################################
## Possible arguments:
## - clean : to sweap all built files
## - dirs : to build only in dirs
###################################################
## Is it a clean
if test "$1" = "clean" ; then if test "$1" = "clean" ; then
find . -name Makefile.in -exec rm {} \; -print find . -name Makefile.in -exec rm {} \; -print
find . -name aclocal.m4 -exec rm {} \; -print find . -name aclocal.m4 -exec rm {} \; -print
@ -10,12 +16,20 @@ if test "$1" = "clean" ; then
exit exit
fi fi
dirs=`\ls -l $srcdir | grep '^d' | awk '{print $NF}'`
## take parameters for directories or take all dirs by default
if [ $# -eq 0 ] ; then
dirs=`\ls -l $srcdir | grep '^d' | awk '{print $NF}'`
else
dirs=$*
fi
## root first
aclocal -I . aclocal -I .
automake --foreign --add-missing --copy automake --foreign --add-missing --copy
autoconf autoconf
## autoconf all dirs
for i in $dirs ; do for i in $dirs ; do
cd $i cd $i
if test -f configure.in ; then if test -f configure.in ; then
@ -26,4 +40,5 @@ for i in $dirs ; do
fi fi
cd .. cd ..
done done
exit 0 exit 0

View File

@ -25,10 +25,10 @@ dnl Almost ten years since I wrote this stuff, I just can't
dnl believe it dnl believe it
dnl Date : 01/02/2002 dnl Date : 01/02/2002
dnl Author : Frederic Petrot <Frederic.Petrot@lip6.fr> dnl Author : Frederic Petrot <Frederic.Petrot@lip6.fr>
dnl $Id: configure.in,v 1.11 2002/03/21 15:33:54 ludo Exp $ dnl $Id: configure.in,v 1.12 2002/03/22 09:52:01 francois Exp $
dnl dnl
dnl dnl
AC_INIT(./mbk) AC_INIT(./configure.in)
AM_INIT_AUTOMAKE(alliance, 5.0) AM_INIT_AUTOMAKE(alliance, 5.0)
AC_PROG_CC AC_PROG_CC
AC_PROG_RANLIB AC_PROG_RANLIB