Fix the embedded version string in cvs and cvsbug. This breaks scripts

that parse it.

PR: 72139
Submitted by:  Eugene M. Kim <gene@nttmcl.com>
This commit is contained in:
Peter Wemm 2004-09-28 21:02:43 +00:00
parent ae59037978
commit 92ae313d8e
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ CLEANFILES+= cvsbug
cvsbug: cvsbug.in
version=`sed < ${CVSDIR}/configure \
-e '/^[ ]*VERSION=/!d' -e 's/.*=\(.*\)/\1/' -e q`; \
-e '/^[ ]*VERSION=/!d' -e 's/.*=["'\'']\{0,1\}\([^"'\'']*\)["'\'']\{0,1\}/\1/' -e q`; \
sed -e "s,@VERSION@,$${version}-FreeBSD,g" ${.ALLSRC} > ${.TARGET}
.include <bsd.prog.mk>

View File

@ -29,7 +29,7 @@ SRCS= config.h argmatch.c getdate.y getline.c \
config.h: config.h.proto
version=`sed < ${CVSDIR}/configure \
-e '/^[ ]*VERSION=/!d' -e 's/.*=\(.*\)/\1/' -e q`; \
-e '/^[ ]*VERSION=/!d' -e 's/.*=["'\'']\{0,1\}\([^"'\'']*\)["'\'']\{0,1\}/\1/' -e q`; \
sed -e "s,@VERSION@,$${version}-FreeBSD,g" \
-e "s,@UMASK_DFLT@,${CVS_UMASK_DFLT},g" \
-e "s,@TMPDIR_DFLT@,${CVS_TMPDIR_DFLT},g" \