summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2003-09-07 13:17:31 +0000
committerru <ru@FreeBSD.org>2003-09-07 13:17:31 +0000
commit7e8f143aca909c353a85674c6df574e00793c512 (patch)
tree8db92758f73b2d0036f6c6c745962b4c9e2f0935 /gnu
parent30213bfe8539904a02957c0fd1a34225091672f0 (diff)
downloadFreeBSD-src-7e8f143aca909c353a85674c6df574e00793c512.zip
FreeBSD-src-7e8f143aca909c353a85674c6df574e00793c512.tar.gz
Only evaluate CVS version once, when necessary.
Eliminates the need in sed(1) during install.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/cvs/cvsbug/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/usr.bin/cvs/cvsbug/Makefile b/gnu/usr.bin/cvs/cvsbug/Makefile
index b98451d..a713378 100644
--- a/gnu/usr.bin/cvs/cvsbug/Makefile
+++ b/gnu/usr.bin/cvs/cvsbug/Makefile
@@ -12,10 +12,10 @@ SCRIPTS= cvsbug
MAN= cvsbug.8
CLEANFILES+= cvsbug
-VERSION!= sed < ${CVSDIR}/configure \
- -e '/^[ ]*VERSION=/!d' -e 's/.*=\(.*\)/\1/' -e q
cvsbug: cvsbug.in
- sed -e "s,@VERSION@,${VERSION}-FreeBSD,g" ${.ALLSRC} > ${.TARGET}
+ version=`sed < ${CVSDIR}/configure \
+ -e '/^[ ]*VERSION=/!d' -e 's/.*=\(.*\)/\1/' -e q`; \
+ sed -e "s,@VERSION@,$${version}-FreeBSD,g" ${.ALLSRC} > ${.TARGET}
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud