1# $FreeBSD$ 2 3SCRIPTS = freebsd-version 4MAN = freebsd-version.1 5CLEANFILES = freebsd-version.sh 6NEWVERS = ${.CURDIR}/../../sys/conf/newvers.sh 7 8freebsd-version.sh.in: ${NEWVERS} 9freebsd-version.sh: ${.CURDIR}/freebsd-version.sh.in 10 eval $$(egrep '^(TYPE|REVISION|BRANCH)=' ${NEWVERS}) ; \ 11 if ! sed -e "\ 12 s/@@TYPE@@/$${TYPE}/g; \ 13 s/@@REVISION@@/$${REVISION}/g; \ 14 s/@@BRANCH@@/$${BRANCH}/g; \ 15 " ${.ALLSRC} >${.TARGET} ; then \ 16 rm -f ${.TARGET} ; \ 17 exit 1 ; \ 18 fi 19 20.include <bsd.prog.mk> 21