aboutsummaryrefslogtreecommitdiff
path: root/Configure.pl
diff options
context:
space:
mode:
authorpmichaud <pmichaud@pobox.com>2012-08-28 01:25:50 -0500
committerpmichaud <pmichaud@pobox.com>2012-08-28 01:25:50 -0500
commit251ada7d7f2f8f0198ff2d2316f5a086f05da629 (patch)
treea26f7695510250c0649392a1e98cb5cba5b382ca /Configure.pl
parentbb733c2f7b33f120bca60c497a202413d031800c (diff)
Block Configure.pl from running from a git checkout and display a helpful message.
Diffstat (limited to 'Configure.pl')
-rw-r--r--Configure.pl16
1 files changed, 16 insertions, 0 deletions
diff --git a/Configure.pl b/Configure.pl
index 86e4047..2814888 100644
--- a/Configure.pl
+++ b/Configure.pl
@@ -16,6 +16,14 @@ my $lang = 'Rakudo';
my $lclang = lc $lang;
my $uclang = uc $lang;
+if (-d '.git') {
+ sorry("I see a .git directory here -- you appear to be trying",
+ "to run Configure.pl from a clone of the Rakudo Star git",
+ "repository.",
+ "",
+ download_text());
+}
+
MAIN: {
if (-r "config.default") {
unshift @ARGV, shellwords(slurp('config.default'));
@@ -174,6 +182,14 @@ END
return;
}
+
+sub download_text {
+ ("The git repository contains the tools needed to build a Rakudo Star",
+ "release, but does not contain a complete Rakudo Star release.",
+ "To download and build the latest release of Rakudo Star, please",
+ "download a .tar.gz file from https://github.com/rakudo/star/downloads .")
+}
+
# Local Variables:
# mode: cperl
# cperl-indent-level: 4