7 # Create libraries/*/{ghc.mk,GNUmakefile}
8 system("/usr/bin/perl", "-w", "boot-pkgs") == 0
9 or die "Running boot-pkgs failed: $?";
16 # Check that we have all boot packages.
17 open PACKAGES, "< packages";
22 elsif (/^([a-zA-Z0-9\/.-]+) *[^ ]+ *[^ ]+$/) {
25 # We would like to just check for an _darcs directory here, but in
26 # an lndir tree we avoid making _darcs directories, so it doesn't
27 # exist. We therefore require that every repo has a LICENSE file
29 if (! -f "$dir/LICENSE") {
30 print STDERR "Error: $dir/LICENSE doesn't exist.\n";
31 die "Maybe you haven't done './darcs-all get'?";
34 elsif (/^([a-zA-Z0-9\/.-]+) *[^ ]+ *[^ ]+ *[^ ]+$/) {
35 # These are lines which refer to optional repositories, so their
36 # absence isn't an error.
39 die "Bad line in packages file: $_";
44 # autoreconf everything that needs it.
45 foreach $dir (".", glob("libraries/*/")) {
46 if (-f "$dir/configure.ac") {
47 print "Booting $dir\n";
54 # Alas, darcs doesn't handle file permissions, so fix a few of them.
55 for my $file ("boot", "darcs-all", "push-all", "validate") {
56 chmod 0755, $file if -f $file;