Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix git rev-parse when standard build process is invoked
Baptiste Daroussin committed 13 years ago
commit cb792ebada9d721f677373cb285fc340fa9dd855
parent 7dcc7f26d3ce93182dcc2058568cf5d625bbedc6
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