Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Simplify GITHASH definition
Pietro Cerutti committed 8 years ago
commit 60d1d8a300f2d430bec746d655e853da27c7527d
parent e6cd123c808a380f3bed269f4cac18c3ed2b4d55
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]]} {