diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2003-09-07 13:17:31 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2003-09-07 13:17:31 +0000 |
commit | a463d8c3e09049b5490a6b71d9a61da4cb3deef9 (patch) | |
tree | 8db92758f73b2d0036f6c6c745962b4c9e2f0935 /gnu | |
parent | d61bb3f2ba67fd809e5778180e232a6589ad966d (diff) | |
download | src-a463d8c3e09049b5490a6b71d9a61da4cb3deef9.tar.gz src-a463d8c3e09049b5490a6b71d9a61da4cb3deef9.zip |
Only evaluate CVS version once, when necessary.
Eliminates the need in sed(1) during install.
Notes
Notes:
svn path=/head/; revision=119841
Diffstat (limited to 'gnu')
-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 b98451d3b0cc..a7133788e857 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> |