specfile: ignore case when doing test for gawk(abi)
To be backward compatible with 4.1.3 and older code.
This commit is contained in:
parent
fcc2230860
commit
f318f0d9b8
@ -191,8 +191,8 @@ makeinfo --html -I doc -o html/gawkinet doc/gawkinet.texi
|
||||
make check
|
||||
|
||||
# Check we have correctly specified the ABI version for the current sources:
|
||||
api_major_vers=$(grep -e "gawk_api_major.*[[:digit:]]" gawkapi.h | grep -o -e "[[:digit:]]")
|
||||
api_minor_vers=$(grep -e "gawk_api_minor.*[[:digit:]]" gawkapi.h | grep -o -e "[[:digit:]]")
|
||||
api_major_vers=$(grep -i -e "gawk_api_major.*[[:digit:]]" gawkapi.h | grep -o -e "[[:digit:]]")
|
||||
api_minor_vers=$(grep -i -e "gawk_api_minor.*[[:digit:]]" gawkapi.h | grep -o -e "[[:digit:]]")
|
||||
|
||||
if [[ "$api_major_vers" != %{gawk_api_major} || "$api_minor_vers" != %{gawk_api_minor} ]]; then
|
||||
echo "Build Error: specified gawk(abi) version [%{gawk_api_major}.%{gawk_api_minor}] is different than source code API version [$api_major_vers.$api_minor_vers]!" >&2
|
||||
|
Loading…
Reference in New Issue
Block a user