diff options
author | Leon Brocard <acme@astray.com> | 2010-05-04 19:58:36 +0100 |
---|---|---|
committer | Leon Brocard <acme@astray.com> | 2010-05-04 19:58:36 +0100 |
commit | 7b931d503c63a3381b96c75ed6b22069ceb7f371 (patch) | |
tree | 077824fd8c06566165cf3cf48e974a32aee4dbf0 /regen_perly.pl | |
parent | c9441fce959a578649990e314e4e5d491aa4b319 (diff) | |
download | perl-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.pl | 4 |
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 |