version.c.SH: Fix generation not incrementing

This commit is contained in:
Matt Ullman 2016-03-24 04:00:23 -04:00
parent 3b9507d0e9
commit 2a4b3ea648

View file

@ -7,7 +7,7 @@ echo "Extracting $package/src/version.c..."
if test -r version.c.last if test -r version.c.last
then then
generation=`sed -n 's/^char \*generation = \"\(.*\)\";/\1/p' < version.c.last` generation=`sed -n 's/^const char \*generation = \"\(.*\)\";/\1/p' < version.c.last`
if test ! "$generation" ; then generation=0; fi if test ! "$generation" ; then generation=0; fi
else else
generation=0 generation=0