From 90cb8f0a802281ca74dada88cd664357cadb7dc0 Mon Sep 17 00:00:00 2001 From: Francois Donnet Date: Fri, 22 Mar 2002 09:52:01 +0000 Subject: [PATCH] On peut desormais charger qu'une partie de l'arbre et faire un autostuff sur un repertoire precis --- alliance/src/autostuff | 17 ++++++++++++++++- alliance/src/configure.in | 4 ++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/alliance/src/autostuff b/alliance/src/autostuff index 8918f634..e73e7023 100755 --- a/alliance/src/autostuff +++ b/alliance/src/autostuff @@ -1,5 +1,11 @@ #!/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 find . -name Makefile.in -exec rm {} \; -print find . -name aclocal.m4 -exec rm {} \; -print @@ -10,12 +16,20 @@ if test "$1" = "clean" ; then exit 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 . automake --foreign --add-missing --copy autoconf +## autoconf all dirs for i in $dirs ; do cd $i if test -f configure.in ; then @@ -26,4 +40,5 @@ for i in $dirs ; do fi cd .. done + exit 0 diff --git a/alliance/src/configure.in b/alliance/src/configure.in index 2782ee77..1cc6ad1f 100644 --- a/alliance/src/configure.in +++ b/alliance/src/configure.in @@ -25,10 +25,10 @@ dnl Almost ten years since I wrote this stuff, I just can't dnl believe it dnl Date : 01/02/2002 dnl Author : Frederic Petrot -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 -AC_INIT(./mbk) +AC_INIT(./configure.in) AM_INIT_AUTOMAKE(alliance, 5.0) AC_PROG_CC AC_PROG_RANLIB