diff options
author | BuFran <BuFran@seznam.cz> | 2013-07-06 18:13:05 +0400 |
---|---|---|
committer | Piotr Esden-Tempski <piotr@esden.net> | 2014-01-03 00:50:01 +0400 |
commit | bfdc2cd99191cba66426daea1dd503d89323a108 (patch) | |
tree | 192c47e12f1989e896456c71e99836888a69d7cc /scripts | |
parent | ea5bbdc08cbf382b404aa2688ee92d117cdc59f7 (diff) |
[GENLINK] correct the whitespace bug
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/genlink.awk | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/genlink.awk b/scripts/genlink.awk index 1550d883..c01cda9f 100644 --- a/scripts/genlink.awk +++ b/scripts/genlink.awk @@ -7,8 +7,12 @@ BEGIN { PAT = tolower(PAT); + ORS = " "; } !/^#/{ + #remove cr on windows + gsub(/\r$/,""); + tmp = "^"$1"$"; gsub(/?/, ".", tmp); gsub(/*/, ".*", tmp); @@ -21,8 +25,7 @@ BEGIN { $1=""; $2=""; for (i = 3; i <= NF; i = i + 1) - $i = "-D"$i; - print; + printf "-D%s ",$i; if (PAT=="END") exit; } } |