projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
144a9ea
)
/bin/sh on OSX doesn't understand -n
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 9 May 2015 18:34:52 +0000
(20:34 +0200)
committer
Marc Fournier
<marc.fournier@camptocamp.com>
Sat, 9 May 2015 22:11:06 +0000
(
00:11
+0200)
This breaks PACKAGEVERSION since the -n is left verbatim in the string.
Use the more portable printf instead
version-gen.sh
patch
|
blob
|
history
diff --git
a/version-gen.sh
b/version-gen.sh
index
5ab6f78
..
40c1144
100755
(executable)
--- a/
version-gen.sh
+++ b/
version-gen.sh
@@
-10,4
+10,4
@@
fi
VERSION="`echo \"$VERSION\" | sed -e 's/-/./g'`"
-
echo -n
"$VERSION"
+
printf "%s"
"$VERSION"