aboutsummaryrefslogtreecommitdiff
path: root/autoreconf.sh
diff options
context:
space:
mode:
authorBryan Jurish <mukau@users.sourceforge.net>2009-01-23 10:57:17 +0000
committerBryan Jurish <mukau@users.sourceforge.net>2009-01-23 10:57:17 +0000
commit44396558c4651b92cd61f3adb7e7e06f811bd522 (patch)
tree38b8ef0ca5292a8cecdb9b2521b5361f38047849 /autoreconf.sh
parentf7ef3dd6a3f98e360a2d25c92e968bd223764db2 (diff)
+ yet more autobuild-related updates
svn path=/trunk/externals/moocow/; revision=10603
Diffstat (limited to 'autoreconf.sh')
-rwxr-xr-xautoreconf.sh30
1 files changed, 20 insertions, 10 deletions
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