From a91df48bcf1a06dde529812c44bbceaee7c1fb10 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Thu, 14 Apr 2011 19:56:51 +0100 Subject: [PATCH] Make the boot script complain if mk/build.mk doesn't exist If we aren't validating and mk/build.mk doesn't exist then boot prints a warning, pointing at instructions for setting up mk/build.mk. --- boot | 21 +++++++++++++++++++++ validate | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/boot b/boot index ae57381..9d7eb38 100755 --- a/boot +++ b/boot @@ -5,8 +5,10 @@ use strict; use Cwd; my %required_tag; +my $validate; $required_tag{"-"} = 1; +$validate = 0; while ($#ARGV ne -1) { my $arg = shift @ARGV; @@ -14,6 +16,9 @@ while ($#ARGV ne -1) { if ($arg =~ /^--required-tag=(.*)/) { $required_tag{$1} = 1; } + elsif ($arg =~ /^--validate$/) { + $validate = 1; + } else { die "Bad arg: $arg"; } @@ -70,3 +75,19 @@ foreach $dir (".", glob("libraries/*/")) { } } +if ($validate eq 0 && ! -f "mk/build.mk") { + print <