/bin/sh isn't /usr/bin/perl :-)
authorNicholas Clark <nick@ccl4.org>
Sat, 20 Dec 2008 21:50:22 +0000 (21:50 +0000)
committerDavid Mitchell <davem@iabyn.com>
Wed, 25 Feb 2009 22:19:44 +0000 (22:19 +0000)
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.

(cherry picked from commit 8b845f197ad9c905082421adc4c1a23b49886ad3)

cflags.SH

index b429df6..9e0494e 100755 (executable)
--- 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