From patchwork Sun Aug 28 21:27:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [master] sed version number to current commit if no tag discripe exist From: Jan-Tarek Butt X-Patchwork-Id: 214 Message-Id: <20160828212713.27247-1-tarek@ring0.de> To: franken-dev@freifunk.net Cc: dev@list.ffnw.de Date: Sun, 28 Aug 2016 23:27:13 +0200 --- buildscript | 3 +++ 1 file changed, 3 insertions(+) --- 2.9.3 diff --git a/buildscript b/buildscript index 53985c4..5a23037 100755 --- a/buildscript +++ b/buildscript @@ -192,6 +192,9 @@ prebuild() { #insert actual firware version informations into release file version=$(git describe --tags --dirty) + if [ $? -ne 0 ]; then + version=$(git log | grep -m 1 commit | tail -c41 | head -c7) + fi community=$(basename "$(realpath selected_community)" .cfg) {