aboutsummaryrefslogtreecommitdiff
path: root/autoreconf.sh
blob: e008d6ebf56ce430eab05f4f2d99fe4e662d35c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh

subdirs=(deque flite gfsm locale pdstring readdir sprinkler weightmap)

#ar_args="--install --verbose --force --symlink"
ar_args="--install --verbose --force"
#ar_args="--install --verbose"

if test -n "$*" ; then
  dirs=("$@")
else
  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 $ar_args "${dirs[@]}"
  #--symlink
fi