From 30d4540d9e75518e4af777350aa8598c290bd7bf Mon Sep 17 00:00:00 2001 From: BuFran Date: Sat, 6 Jul 2013 17:11:25 +0200 Subject: [PATCH] [GENLINK] Code Cleanup --- scripts/genlink.awk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/genlink.awk b/scripts/genlink.awk index c01cda9f..86c3a560 100644 --- a/scripts/genlink.awk +++ b/scripts/genlink.awk @@ -7,7 +7,6 @@ BEGIN { PAT = tolower(PAT); - ORS = " "; } !/^#/{ #remove cr on windows @@ -22,10 +21,11 @@ BEGIN { if (PAT ~ tmp) { if ($2 != "+") PAT=$2; - $1=""; - $2=""; + for (i = 3; i <= NF; i = i + 1) printf "-D%s ",$i; - if (PAT=="END") exit; + + if (PAT=="END") + exit; } }