From 8653f7fd3c052a8201d7dd386bfdb99ee1a09b82 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Fri, 10 Aug 2001 10:22:43 +0000 Subject: [PATCH] Get the version source from the (more) correct place. Remove the obsolete cvsbug.sh script --- gnu/usr.bin/cvs/cvsbug/Makefile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/gnu/usr.bin/cvs/cvsbug/Makefile b/gnu/usr.bin/cvs/cvsbug/Makefile index 89fafc52100e..97bf94023919 100644 --- a/gnu/usr.bin/cvs/cvsbug/Makefile +++ b/gnu/usr.bin/cvs/cvsbug/Makefile @@ -6,21 +6,20 @@ MAINTAINER= peter@FreeBSD.org .PATH: ${CVSDIR}/src .PATH: ${CVSDIR}/man +.PATH: ${CVSDIR} SCRIPTS= cvsbug MAN= cvsbug.8 CLEANFILES+= cvsbug ver -.SUFFIXES: .sh - -ver: version.c - echo > ${.TARGET} cvs-`sed < ${.ALLSRC} \ - -e '/version_string/!d' \ - -e 's/[^0-9.]*\([0-9.]*\).*/\1/' \ +ver: configure + echo > ${.TARGET} `sed < ${.ALLSRC} \ + -e '/^VERSION=/!d' \ + -e 's/.*=\(.*\)/\1/' \ -e q` -.sh: ver - sed -e "s,xVERSIONx,`cat ver`,g" ${.IMPSRC} > ${.TARGET} +cvsbug: ver cvsbug.in + sed -e "s,@VERSION@,`cat ver`,g" ${CVSDIR}/src/cvsbug.in > ${.TARGET} .include