summaryrefslogtreecommitdiff
path: root/regen_perly.pl
diff options
context:
space:
mode:
authorLeon Brocard <acme@astray.com>2010-05-04 19:58:36 +0100
committerLeon Brocard <acme@astray.com>2010-05-04 19:58:36 +0100
commit7b931d503c63a3381b96c75ed6b22069ceb7f371 (patch)
tree077824fd8c06566165cf3cf48e974a32aee4dbf0 /regen_perly.pl
parentc9441fce959a578649990e314e4e5d491aa4b319 (diff)
downloadperl-7b931d503c63a3381b96c75ed6b22069ceb7f371.tar.gz
Give an error message if bison is not found at all
Diffstat (limited to 'regen_perly.pl')
-rw-r--r--regen_perly.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/regen_perly.pl b/regen_perly.pl
index 859495faf1..a988a631f6 100644
--- a/regen_perly.pl
+++ b/regen_perly.pl
@@ -66,6 +66,10 @@ die "$0: must be run on an ASCII system\n" unless ord 'A' == 65;
# the test below to allow that version too. DAPM Feb 04.
my $version = `$bison -V`;
+unless ($version) { die <<EOF; }
+Could not find a version of bison in your path. Please install bison.
+EOF
+
unless ($version =~ /\b(1\.875[a-z]?|2\.[0134])\b/) { die <<EOF; }
You have the wrong version of bison in your path; currently 1.875