fixed space detection
This commit is contained in:
parent
9002319fc3
commit
94585bf852
@ -1,7 +1,7 @@
|
|||||||
# fetch libssh2 version number from input file and write them to STDOUT
|
# fetch libssh2 version number from input file and write them to STDOUT
|
||||||
BEGIN {
|
BEGIN {
|
||||||
while ((getline < ARGV[1]) > 0) {
|
while ((getline < ARGV[1]) > 0) {
|
||||||
if (match ($0, /^#define LIBSSH2_VERSION[\s|\t]+"[^"]+"/)) {
|
if (match ($0, /^#define LIBSSH2_VERSION[ |\t]+"[^"]+"/)) {
|
||||||
my_ver_str = substr($3, 2, length($3) - 2);
|
my_ver_str = substr($3, 2, length($3) - 2);
|
||||||
split(my_ver_str, v, ".");
|
split(my_ver_str, v, ".");
|
||||||
if (v[3])
|
if (v[3])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user