2013-10-07 10:26:38 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2016-02-09 16:58:50 +00:00
|
|
|
PACKAGE=runtime
|
2013-10-07 10:26:38 +00:00
|
|
|
SCRIPTS = freebsd-version
|
|
|
|
MAN = freebsd-version.1
|
2015-12-07 16:08:13 +00:00
|
|
|
CLEANFILES = freebsd-version freebsd-version.sh
|
2017-03-04 11:31:08 +00:00
|
|
|
NEWVERS = ${SRCTOP}/sys/conf/newvers.sh
|
2013-10-07 10:26:38 +00:00
|
|
|
|
2014-12-10 03:12:22 +00:00
|
|
|
freebsd-version.sh: ${.CURDIR}/freebsd-version.sh.in ${NEWVERS}
|
2013-10-07 10:26:38 +00:00
|
|
|
eval $$(egrep '^(TYPE|REVISION|BRANCH)=' ${NEWVERS}) ; \
|
|
|
|
if ! sed -e "\
|
|
|
|
s/@@TYPE@@/$${TYPE}/g; \
|
|
|
|
s/@@REVISION@@/$${REVISION}/g; \
|
|
|
|
s/@@BRANCH@@/$${BRANCH}/g; \
|
2015-01-22 17:13:43 +00:00
|
|
|
" ${.CURDIR}/freebsd-version.sh.in >${.TARGET} ; then \
|
2013-10-07 10:26:38 +00:00
|
|
|
rm -f ${.TARGET} ; \
|
|
|
|
exit 1 ; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|