aboutsummaryrefslogtreecommitdiff
path: root/autoreconf.sh
blob: e69220ede291aec9ab6a981f6e1146cda693f3d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

subdirs=(deque flite gfsm pdstring readdir sprinkler weightmap)

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=(.)
fi

if test -n "$dirs"; then
  echo "$0: dirs=(${dirs[@]})"
  exec autoreconf --install --force --verbose "${dirs[@]}"
  #--symlink
fi