[GENLINK] correct the whitespace bug

This commit is contained in:
BuFran
2013-07-06 16:13:05 +02:00
committed by Piotr Esden-Tempski
parent ea5bbdc08c
commit bfdc2cd991

View File

@@ -7,8 +7,12 @@
BEGIN { BEGIN {
PAT = tolower(PAT); PAT = tolower(PAT);
ORS = " ";
} }
!/^#/{ !/^#/{
#remove cr on windows
gsub(/\r$/,"");
tmp = "^"$1"$"; tmp = "^"$1"$";
gsub(/?/, ".", tmp); gsub(/?/, ".", tmp);
gsub(/*/, ".*", tmp); gsub(/*/, ".*", tmp);
@@ -21,8 +25,7 @@ BEGIN {
$1=""; $1="";
$2=""; $2="";
for (i = 3; i <= NF; i = i + 1) for (i = 3; i <= NF; i = i + 1)
$i = "-D"$i; printf "-D%s ",$i;
print;
if (PAT=="END") exit; if (PAT=="END") exit;
} }
} }