aboutsummaryrefslogtreecommitdiff
path: root/autoreconf.sh
blob: 4e65cf31cad15c0fbaf11b2beb00bef649910ce4 (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
34
35
36
37
#!/bin/bash

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[@]})"
  for d in "${dirs[@]}"; do
    test -x "$d/svn-prepare.sh" && (cd "$d"; sh ./svn-prepare.sh)
    test -w "$d/README.svn" && cp -af "$d"/../common/README.svn "$d"
  done
  exec autoreconf $ar_args "${dirs[@]}"
  #--symlink
fi