fixed space detection

This commit is contained in:
Guenter Knauf 2007-06-13 22:20:13 +00:00
parent 9002319fc3
commit 94585bf852

View File

@ -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])