From patchwork Sat Sep 24 13:28:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [master, v2] sed version number to current commit if no tag describe exists From: Jan-Tarek Butt X-Patchwork-Id: 228 Message-Id: <20160924132827.12441-1-tarek@ring0.de> To: franken-dev@freifunk.net Date: Sat, 24 Sep 2016 15:28:27 +0200 --- buildscript | 3 +++ 1 file changed, 3 insertions(+) Reviewed-by: Tim Niemeyer --- 2.10.0 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) {