Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix git rev-parse when standard build process is invoked
Baptiste Daroussin committed 13 years ago
commit cb792ebada9d721f677373cb285fc340fa9dd855
parent 7dcc7f2
1 file changed +2 -2
modified pkg/Makefile
@@ -33,8 +33,8 @@ PREFIX?= /usr/local
BINDIR=		${PREFIX}/sbin
MANDIR=		${PREFIX}/man/man

-
.if exists(../.git) && exists(/usr/local/bin/git)
-
GITHASH!=	git rev-parse HEAD
+
.if exists(${.CURDIR}/../.git) && exists(/usr/local/bin/git)
+
GITHASH!=	cd ${.CURDIR} && git rev-parse HEAD
CFLAGS+=	-DGITHASH="\" ${GITHASH}\""
.endif