[patch master v2] sed version number to current commit if no tag describe exists

Jan-Tarek Butt tarek at ring0.de
Sa Sep 24 15:28:27 CEST 2016


---
 buildscript | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/buildscript b/buildscript
index 04942e6..0c8ef05 100755
--- a/buildscript
+++ b/buildscript
@@ -190,6 +190,9 @@ prebuild() {

     #insert actual firware version informations into release file
     version=$(git describe --tags --dirty)
+    if [ 0 -ne $? ]; then
+        version=$(git log -1 --pretty=format:%h)
+    fi
     community=$(basename "$(realpath selected_community)" .cfg)

     {
--
2.10.0



Mehr Informationen über die Mailingliste franken-dev