From f8210050e52ba2f48db881bb56ddaa873ceca395 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 4 Dec 2008 13:12:46 +0000 Subject: If we're building from subversion, brand the binary as such. --- src/rc/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/rc/Makefile') diff --git a/src/rc/Makefile b/src/rc/Makefile index a45145f0..f7f5ff55 100644 --- a/src/rc/Makefile +++ b/src/rc/Makefile @@ -43,9 +43,17 @@ include ${MK}/${MKTERMCAP}.mk LDADD+= ${LIBDL} ${LIBKVM} include ${MK}/${MKPAM}.mk +_SVNVER_SH= if type svnversion >/dev/null 2>&1; then \ + echo "-svn-$$(svnversion)"; \ + else \ + echo ""; \ + fi +_SVNVER!= ${_SVNVER_SH} +SVNVER= ${_SVNVER}$(shell ${_SVNVER_SH}) + ${SRCS}: version.h version.h: - sed -n -e 's/^VERSION=[[:space:]]*\([^[:space:]]*\).*/#define VERSION "\1\"/p' ../../Makefile > version.h + sed -n -e 's/^VERSION=[[:space:]]*\([^[:space:]]*\).*/#define VERSION "\1${SVNVER}\"/p' ../../Makefile > version.h if test -n "${BRANDING}"; then \ echo "#define BRANDING \"${BRANDING}\"" >> version.h; \ fi -- cgit v1.2.3