mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-28 12:07:10 +01:00
ac2875fa16
Note: tcsh(1) has a MK_TCSH=no test, so this should be a separate package, which requires pre-install/post-install scripts, to be added later. Sponsored by: The FreeBSD Foundation
21 lines
531 B
Makefile
21 lines
531 B
Makefile
# $FreeBSD$
|
|
|
|
PACKAGE=runtime
|
|
SCRIPTS = freebsd-version
|
|
MAN = freebsd-version.1
|
|
CLEANFILES = freebsd-version freebsd-version.sh
|
|
NEWVERS = ${.CURDIR}/../../sys/conf/newvers.sh
|
|
|
|
freebsd-version.sh: ${.CURDIR}/freebsd-version.sh.in ${NEWVERS}
|
|
eval $$(egrep '^(TYPE|REVISION|BRANCH)=' ${NEWVERS}) ; \
|
|
if ! sed -e "\
|
|
s/@@TYPE@@/$${TYPE}/g; \
|
|
s/@@REVISION@@/$${REVISION}/g; \
|
|
s/@@BRANCH@@/$${BRANCH}/g; \
|
|
" ${.CURDIR}/freebsd-version.sh.in >${.TARGET} ; then \
|
|
rm -f ${.TARGET} ; \
|
|
exit 1 ; \
|
|
fi
|
|
|
|
.include <bsd.prog.mk>
|