4 # Check that we have all boot packages.
5 for dir in `grep "^[^# ][^ ]* *[^ ][^ ]* *[^ ][^ ]*$" packages | sed "s/ .*//"`
7 if test ! -f $dir/LICENSE
9 echo "Error: $dir/LICENSE doesn't exist." >&2
10 echo "Maybe you haven't done './darcs-all get'?" >&2
15 # autoreconf everything that needs it.
16 for dir in . libraries/*
18 if test -f $dir/configure.ac
21 ( cd $dir && autoreconf )
25 # Alas, darcs doesn't handle file permissions, so fix a few of them.
26 for f in boot darcs-all push-all validate
34 for f in libraries/*; do
36 cabals=`echo $f/*.cabal`
37 if test -f $cabals; then
38 echo "Creating $f/ghc.mk"
40 pkg=`basename ${cabals%.cabal}`
41 echo "${f}_PACKAGE = ${pkg}" >> $f/ghc.mk
42 echo "\$(eval \$(call build-package,${f},dist-install,1))" >> $f/ghc.mk
44 echo "Creating $f/GNUmakefile"
45 echo "dir = ${f}" >> $f/GNUmakefile
46 echo "TOP = ../.." >> $f/GNUmakefile
47 echo "include \$(TOP)/mk/sub-makefile.mk" >> $f/GNUmakefile