2013-10-07 10:26:38 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
SCRIPTS = freebsd-version
|
|
|
|
MAN = freebsd-version.1
|
2015-12-07 16:08:13 +00:00
|
|
|
CLEANFILES = freebsd-version freebsd-version.sh
|
2013-10-07 10:26:38 +00:00
|
|
|
NEWVERS = ${.CURDIR}/../../sys/conf/newvers.sh
|
|
|
|
|
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>
|