aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>1998-05-12 22:32:03 +0000
committerJohn Birrell <jb@FreeBSD.org>1998-05-12 22:32:03 +0000
commitb0c3b27388a92ad571ab9aa5e72601532f1f378b (patch)
treed163a91e8a4d6be450a1fd82c8742e5610394025
parent266f0ba43409e54c976a7e97d4df15acb1654e13 (diff)
downloadsrc-b0c3b27388a92ad571ab9aa5e72601532f1f378b.tar.gz
src-b0c3b27388a92ad571ab9aa5e72601532f1f378b.zip
Change .if to .elif to prevent the current directory path search for a
perl executable from overriding the object directory path search where perl is most likely to be. Most people haven't seen this because it defaulted to /usr/bin/perl which might be OK as a fallback, but when bootstrapping a new version (or the *first* version on alpha), we don't really want to use /usr/bin/perl.
Notes
Notes: svn path=/head/; revision=35984
-rw-r--r--gnu/usr.bin/perl/usub/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/gnu/usr.bin/perl/usub/Makefile b/gnu/usr.bin/perl/usub/Makefile
index a6c72591f307..63b19497f628 100644
--- a/gnu/usr.bin/perl/usub/Makefile
+++ b/gnu/usr.bin/perl/usub/Makefile
@@ -18,8 +18,7 @@ NOMAN= yes
# If perl exists in none of these places, something is horribly wrong.
.if exists(${.OBJDIR}/../perl/perl)
PERL=${.OBJDIR}/../perl/perl
-.endif
-.if !defined(PERL) && exists(${.CURDIR}/../perl/perl)
+.elif !defined(PERL) && exists(${.CURDIR}/../perl/perl)
PERL=${.CURDIR}/../perl/perl
.else
PERL= /usr/bin/perl