Make cvsbug(1) actually work instead of aborting due to missing configure

script substitution markers.
This commit is contained in:
Peter Wemm 2004-09-28 21:19:31 +00:00
parent 92ae313d8e
commit 5c1d217420

View File

@ -16,6 +16,11 @@ CLEANFILES+= cvsbug
cvsbug: cvsbug.in
version=`sed < ${CVSDIR}/configure \
-e '/^[ ]*VERSION=/!d' -e 's/.*=["'\'']\{0,1\}\([^"'\'']*\)["'\'']\{0,1\}/\1/' -e q`; \
sed -e "s,@VERSION@,$${version}-FreeBSD,g" ${.ALLSRC} > ${.TARGET}
sed -e "s,@VERSION@,$${version}-FreeBSD,g" \
-e "s,@MKTEMP@,/usr/bin/mktemp,g" \
-e "s,@PACKAGE_BUGREPORT@,bug-cvs@gnu.org,g" \
-e "s,@SENDMAIL@,/usr/sbin/sendmail,g" \
-e "s,@MKTEMP_FUNCTION@,," \
${.ALLSRC} > ${.TARGET}
.include <bsd.prog.mk>