diff options
author | ru <ru@FreeBSD.org> | 2003-09-07 13:17:31 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2003-09-07 13:17:31 +0000 |
commit | 7e8f143aca909c353a85674c6df574e00793c512 (patch) | |
tree | 8db92758f73b2d0036f6c6c745962b4c9e2f0935 /gnu/usr.bin/cvs | |
parent | 30213bfe8539904a02957c0fd1a34225091672f0 (diff) | |
download | FreeBSD-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/usr.bin/cvs')
-rw-r--r-- | gnu/usr.bin/cvs/cvsbug/Makefile | 6 |
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> |