diff options
author | BuFran <BuFran@seznam.cz> | 2013-07-06 19:11:25 +0400 |
---|---|---|
committer | Piotr Esden-Tempski <piotr@esden.net> | 2014-01-03 00:50:01 +0400 |
commit | 30d4540d9e75518e4af777350aa8598c290bd7bf (patch) | |
tree | e83d9350df06916743489dd125775655f35568b2 /scripts | |
parent | ff3b177c47f8690e073f85f7dc85ec79c0b4ac5a (diff) |
[GENLINK] Code Cleanup
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/genlink.awk | 8 |
1 files 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; } } |