summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-12-20 21:50:22 +0000
committerNicholas Clark <nick@ccl4.org>2008-12-20 21:50:22 +0000
commit8b845f197ad9c905082421adc4c1a23b49886ad3 (patch)
treeaccb1e778f10e8b5db67bce0d0103ffa5aae809d
parentf9b1f8657740bc15483dd2b6dd62ededf88f8319 (diff)
downloadperl-8b845f197ad9c905082421adc4c1a23b49886ad3.tar.gz
/bin/sh isn't /usr/bin/perl :-)
Change elsif to the correct "else if" construction. I suspect that this slipped by into f6a80292c3db127d1561c118f409c1cffd1b55d9 because cflags.SH doesn't seem to be re-expanded if it's newer than cflags.
-rwxr-xr-xcflags.SH6
1 files changed, 4 insertions, 2 deletions
diff --git a/cflags.SH b/cflags.SH
index b429df672b..9e0494e671 100755
--- a/cflags.SH
+++ b/cflags.SH
@@ -356,8 +356,10 @@ esac
if test -d .git; then
ccflags="-DPERL_PATCHNUM=`git describe` $ccflags"
-elsif test -f .patch; then
- ccflags="-DPERL_PATCHNUM=`awk '{print $4}' .patch` $ccflags"
+else
+ if test -f .patch; then
+ ccflags="-DPERL_PATCHNUM=`awk '{print $4}' .patch` $ccflags"
+ fi
fi
: Can we perhaps use $ansi2knr here