the root of the project to enable git-extracted version string.
Signed-off-by: David Bachelart <david.bachelart@bbright.com>
+[yann.morin.1998@free.fr: fix troll character U+c2a0]
+Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
genver.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
fi
-if head=`git rev-parse --verify HEAD 2>/dev/null`; then
-+if [ -d .git ] && head=`git rev-parse --verify HEAD 2>/dev/null`; then
++if [ -d .git ] && head=`git rev-parse --verify HEAD 2>/dev/null`; then
# generate the version info based on the tag
release=`(git describe --tags || git --describe || git describe --all --long) \
2>/dev/null | tr -d '\n'`
+++ /dev/null
-diff -durN sslh-v1.18.orig/genver.sh sslh-v1.18/genver.sh
---- sslh-v1.18.orig/genver.sh 2017-02-21 22:03:40.849161283 +0100
-+++ sslh-v1.18/genver.sh 2017-02-21 22:03:59.173402356 +0100
-@@ -25,7 +25,7 @@
- fi
- fi
-
--if [ -d .git ] && head=`git rev-parse --verify HEAD 2>/dev/null`; then
-+if [ -d .git ] && head=`git rev-parse --verify HEAD 2>/dev/null`; then
- # generate the version info based on the tag
- release=`(git describe --tags || git --describe || git describe --all --long) \
- 2>/dev/null | tr -d '\n'`