View | Details | Raw Unified | Return to bug 196199 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-3 / +2 lines)
Lines 5-18 Link Here
5
CLEANFILES = freebsd-version.sh
5
CLEANFILES = freebsd-version.sh
6
NEWVERS = ${.CURDIR}/../../sys/conf/newvers.sh
6
NEWVERS = ${.CURDIR}/../../sys/conf/newvers.sh
7
7
8
freebsd-version.sh.in: ${NEWVERS}
8
freebsd-version.sh: ${.CURDIR}/freebsd-version.sh.in ${NEWVERS}
9
freebsd-version.sh: ${.CURDIR}/freebsd-version.sh.in
10
	eval $$(egrep '^(TYPE|REVISION|BRANCH)=' ${NEWVERS}) ; \
9
	eval $$(egrep '^(TYPE|REVISION|BRANCH)=' ${NEWVERS}) ; \
11
	if ! sed -e "\
10
	if ! sed -e "\
12
			s/@@TYPE@@/$${TYPE}/g; \
11
			s/@@TYPE@@/$${TYPE}/g; \
13
			s/@@REVISION@@/$${REVISION}/g; \
12
			s/@@REVISION@@/$${REVISION}/g; \
14
			s/@@BRANCH@@/$${BRANCH}/g; \
13
			s/@@BRANCH@@/$${BRANCH}/g; \
15
		" ${.ALLSRC} >${.TARGET} ; then \
14
		" ${.CURDIR}/freebsd-version.sh.in >${.TARGET} ; then \
16
		rm -f ${.TARGET} ; \
15
		rm -f ${.TARGET} ; \
17
		exit 1 ; \
16
		exit 1 ; \
18
	fi
17
	fi

Return to bug 196199