mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-08 21:54:57 +02:00
build: properly detect versions like "2.6.36+"
This commit is contained in:
@@ -57,12 +57,12 @@ kminor="${krel%%.*}";
|
|||||||
krel="${krel#*.}";
|
krel="${krel#*.}";
|
||||||
kmicro="${krel%%.*}";
|
kmicro="${krel%%.*}";
|
||||||
if test "$kmicro" = "$krel"; then
|
if test "$kmicro" = "$krel"; then
|
||||||
|
kmicro="$(($kmicro+0))"; # Get rid of non numbers ("2.6.36+" -> "2.6.36")
|
||||||
kstable=0;
|
kstable=0;
|
||||||
else
|
else
|
||||||
|
kmicro="$(($kmicro+0))";
|
||||||
kstable="${krel#*.}";
|
kstable="${krel#*.}";
|
||||||
if test -z "$kstable"; then
|
kstable="$(($kstable+0))";
|
||||||
kstable=0;
|
|
||||||
fi;
|
|
||||||
fi;
|
fi;
|
||||||
if test -z "$kmajor" -o -z "$kminor" -o -z "$kmicro"; then
|
if test -z "$kmajor" -o -z "$kminor" -o -z "$kmicro"; then
|
||||||
echo "WARNING: Version detection did not succeed. Continue at own luck.";
|
echo "WARNING: Version detection did not succeed. Continue at own luck.";
|
||||||
|
Reference in New Issue
Block a user