[GENLINK] Code Cleanup

This commit is contained in:
BuFran 2013-07-06 17:11:25 +02:00 committed by Piotr Esden-Tempski
parent ff3b177c47
commit 30d4540d9e

View File

@ -7,7 +7,6 @@
BEGIN { BEGIN {
PAT = tolower(PAT); PAT = tolower(PAT);
ORS = " ";
} }
!/^#/{ !/^#/{
#remove cr on windows #remove cr on windows
@ -22,10 +21,11 @@ BEGIN {
if (PAT ~ tmp) { if (PAT ~ tmp) {
if ($2 != "+") if ($2 != "+")
PAT=$2; PAT=$2;
$1="";
$2="";
for (i = 3; i <= NF; i = i + 1) for (i = 3; i <= NF; i = i + 1)
printf "-D%s ",$i; printf "-D%s ",$i;
if (PAT=="END") exit;
if (PAT=="END")
exit;
} }
} }