If we're building from subversion, brand the binary as such.
This commit is contained in:
parent
38e6c9ba5c
commit
f8210050e5
@ -43,9 +43,17 @@ include ${MK}/${MKTERMCAP}.mk
|
|||||||
LDADD+= ${LIBDL} ${LIBKVM}
|
LDADD+= ${LIBDL} ${LIBKVM}
|
||||||
include ${MK}/${MKPAM}.mk
|
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
|
${SRCS}: version.h
|
||||||
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 \
|
if test -n "${BRANDING}"; then \
|
||||||
echo "#define BRANDING \"${BRANDING}\"" >> version.h; \
|
echo "#define BRANDING \"${BRANDING}\"" >> version.h; \
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user