mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-22 00:42:06 +01:00
5f3850777e
Approved by: re (gjb)
21 lines
500 B
Makefile
21 lines
500 B
Makefile
# $FreeBSD$
|
|
|
|
SCRIPTS = freebsd-version
|
|
MAN = freebsd-version.1
|
|
CLEANFILES = freebsd-version.sh
|
|
NEWVERS = ${.CURDIR}/../../sys/conf/newvers.sh
|
|
|
|
freebsd-version.sh.in: ${NEWVERS}
|
|
freebsd-version.sh: ${.CURDIR}/freebsd-version.sh.in
|
|
eval $$(egrep '^(TYPE|REVISION|BRANCH)=' ${NEWVERS}) ; \
|
|
if ! sed -e "\
|
|
s/@@TYPE@@/$${TYPE}/g; \
|
|
s/@@REVISION@@/$${REVISION}/g; \
|
|
s/@@BRANCH@@/$${BRANCH}/g; \
|
|
" ${.ALLSRC} >${.TARGET} ; then \
|
|
rm -f ${.TARGET} ; \
|
|
exit 1 ; \
|
|
fi
|
|
|
|
.include <bsd.prog.mk>
|