From 44396558c4651b92cd61f3adb7e7e06f811bd522 Mon Sep 17 00:00:00 2001 From: Bryan Jurish Date: Fri, 23 Jan 2009 10:57:17 +0000 Subject: + yet more autobuild-related updates svn path=/trunk/externals/moocow/; revision=10603 --- autoreconf.sh | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) (limited to 'autoreconf.sh') diff --git a/autoreconf.sh b/autoreconf.sh index e69220e..4fdfb2f 100755 --- a/autoreconf.sh +++ b/autoreconf.sh @@ -2,22 +2,32 @@ subdirs=(deque flite gfsm pdstring readdir sprinkler weightmap) +#ar_args="--install --verbose --force --symlink" +ar_args="--install --verbose --force" +#ar_args="--install --verbose" + if test -n "$*" ; then dirs=("$@") -elif test "`basename \"$PWD\"`" = "moocow" ; then - for d in "${subdirs[@]}"; do - $0 "$d" - done -elif test "`basename \"$PWD\"`" = "extended" ; then - for d in "${subdirs[@]}"; do - $0 "../$d" - done else - dirs=(.) + case "$PWD" in + *[/-]moocow) + for d in "${subdirs[@]}"; do + $0 "$d" + done + ;; + */extended) + for d in "${subdirs[@]}"; do + $0 "../$d" + done + ;; + *) + dirs=(.) + ;; + esac fi if test -n "$dirs"; then echo "$0: dirs=(${dirs[@]})" - exec autoreconf --install --force --verbose "${dirs[@]}" + exec autoreconf $ar_args "${dirs[@]}" #--symlink fi -- cgit v1.2.1