Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Simplify GITHASH definition
Pietro Cerutti committed 8 years ago
commit 60d1d8a300f2d430bec746d655e853da27c7527d
parent e6cd123
1 file changed +1 -5
modified auto.def
@@ -37,11 +37,7 @@ define GITHASH ""
if {[cc-check-progs git] && [file exists .git]} {
	catch {exec git rev-parse --short HEAD} gitrev
	catch {exec git diff-index -m --name-only HEAD} gitdirty
-
	if {$gitdirty eq "" } {
-
		define GITHASH [format "-%s" $gitrev $gitdirty]
-
	} else {
-
		define GITHASH [format "-%s-dirty" $gitrev]
-
	}
+
	define GITHASH -$gitrev[expr {$gitdirty eq {} ? {} : {-dirty}}]
}

if {[string match *-linux* [get-define host]]} {