boot 683 Bytes
Newer Older
sven.panne@aedion.de's avatar
sven.panne@aedion.de committed
1
#! /bin/sh
2
3
set -e

4
# Check that we have all boot packages.
5
for dir in `grep "^[^# ][^ ]*  *[^ ][^ ]*  *[^ ][^ ]*$" packages | sed "s/ .*//"`
Ian Lynagh's avatar
Ian Lynagh committed
6
do
Ian Lynagh's avatar
Ian Lynagh committed
7
    if test ! -f $dir/LICENSE
Ian Lynagh's avatar
Ian Lynagh committed
8
    then
Ian Lynagh's avatar
Ian Lynagh committed
9
        echo "Error: $dir/LICENSE doesn't exist." >&2
Ian Lynagh's avatar
Ian Lynagh committed
10
11
12
        echo "Maybe you haven't done './darcs-all get'?" >&2
        exit 1
    fi
13
done
14

Ian Lynagh's avatar
Ian Lynagh committed
15
16
17
18
19
20
21
22
# autoreconf everything that needs it.
for dir in . libraries/*
do
    if test -f $dir/configure.ac
    then
        echo "Booting $dir"
        ( cd $dir && autoreconf )
    fi
23
24
done

sven.panne@aedion.de's avatar
sven.panne@aedion.de committed
25
# Alas, darcs doesn't handle file permissions, so fix a few of them.
Ian Lynagh's avatar
Ian Lynagh committed
26
27
for f in boot darcs-all push-all validate
do
Ian Lynagh's avatar
Ian Lynagh committed
28
29
30
31
    if test -f $f
    then
        chmod +x $f
    fi
32
done