Fix building with GHC 6.8
[ghc-hetmet.git] / boot
1 #! /bin/sh
2 set -e
3
4 # Check that we have all boot packages.
5 for dir in `grep "^[^# ][^ ]*  *[^ ][^ ]*  *[^ ][^ ]*$" packages | sed "s/ .*//"`
6 do
7     if test ! -d $dir
8     then
9         echo "Looks like you're missing $dir." >&2
10         echo "Maybe you haven't done './darcs-all get'?" >&2
11         exit 1
12     fi
13 done
14
15 # autoreconf everything that needs it.
16 for dir in . libraries/*
17 do
18     if test -f $dir/configure.ac
19     then
20         echo "Booting $dir"
21         ( cd $dir && autoreconf )
22     fi
23 done
24
25 # Alas, darcs doesn't handle file permissions, so fix a few of them.
26 for f in boot darcs-all push-all validate
27 do
28     if test -f $f
29     then
30         chmod +x $f
31     fi
32 done
33