build: stable version number detection fix

This commit is contained in:
Jan Engelhardt
2009-09-12 02:41:58 +02:00
parent b07434386b
commit b0a6111054

View File

@@ -79,11 +79,10 @@ krel="${krel#*.}";
kminor="${krel%%.*}";
krel="${krel#*.}";
kmicro="${krel%%.*}";
krel2="${krel#*.}";
if test "$krel" = "$krel2"; then
if test "$kmicro" = "$krel"; then
kstable=0;
else
kstable="${krel%%.*}";
kstable="${krel#*.}";
if test -z "$kstable"; then
kstable=0;
fi;