Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thirdpin/libopencm3.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBuFran <BuFran@seznam.cz>2013-07-06 18:13:05 +0400
committerPiotr Esden-Tempski <piotr@esden.net>2014-01-03 00:50:01 +0400
commitbfdc2cd99191cba66426daea1dd503d89323a108 (patch)
tree192c47e12f1989e896456c71e99836888a69d7cc /scripts
parentea5bbdc08cbf382b404aa2688ee92d117cdc59f7 (diff)
[GENLINK] correct the whitespace bug
Diffstat (limited to 'scripts')
-rw-r--r--scripts/genlink.awk7
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;
}
}