From patchwork Sat Sep 10 19:55:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [master, v1] sed version number to current commit if no tag discripe exist From: Jan-Tarek Butt X-Patchwork-Id: 222 Message-Id: <20160910195532.19133-1-tarek@ring0.de> To: franken-dev@freifunk.net Cc: dev@list.ffnw.de Date: Sat, 10 Sep 2016 21:55:32 +0200 --- buildscript | 4 ++++ 1 file changed, 4 insertions(+) --- 2.9.3 diff --git a/buildscript b/buildscript index 04942e6..55f3b62 100755 --- a/buildscript +++ b/buildscript @@ -190,6 +190,10 @@ prebuild() { #insert actual firware version informations into release file version=$(git describe --tags --dirty) + if ! $? ; then + version=$(git log -1 --pretty=format:%h) + fi + community=$(basename "$(realpath selected_community)" .cfg) {