aboutsummaryrefslogtreecommitdiff
path: root/autoreconf.sh
diff options
context:
space:
mode:
Diffstat (limited to 'autoreconf.sh')
-rwxr-xr-xautoreconf.sh18
1 files changed, 13 insertions, 5 deletions
diff --git a/autoreconf.sh b/autoreconf.sh
index d5f1a65..e69220e 100755
--- a/autoreconf.sh
+++ b/autoreconf.sh
@@ -1,15 +1,23 @@
#!/bin/sh
+subdirs=(deque flite gfsm pdstring readdir sprinkler weightmap)
+
if test -n "$*" ; then
dirs=("$@")
elif test "`basename \"$PWD\"`" = "moocow" ; then
- dirs=(deque flite gfsm pdstring readdir sprinkler weightmap)
+ for d in "${subdirs[@]}"; do
+ $0 "$d"
+ done
elif test "`basename \"$PWD\"`" = "extended" ; then
- dirs=(../deque ../flite ../gfsm ../pdstring ../readdir ../sprinkler ../weightmap)
+ for d in "${subdirs[@]}"; do
+ $0 "../$d"
+ done
else
dirs=(.)
fi
-echo "$0: dirs=(${dirs[@]})"
-exec autoreconf --install --force --verbose "${dirs[@]}"
-#--symlink
+if test -n "$dirs"; then
+ echo "$0: dirs=(${dirs[@]})"
+ exec autoreconf --install --force --verbose "${dirs[@]}"
+ #--symlink
+fi