aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/cvs
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2001-08-10 10:22:43 +0000
committerPeter Wemm <peter@FreeBSD.org>2001-08-10 10:22:43 +0000
commit8653f7fd3c052a8201d7dd386bfdb99ee1a09b82 (patch)
treea0ec3b022f84838ab641cf73094f0524f369d1ed /gnu/usr.bin/cvs
parent8547e8b5545900f55ca1311ddea562fac642deea (diff)
downloadsrc-8653f7fd3c052a8201d7dd386bfdb99ee1a09b82.tar.gz
src-8653f7fd3c052a8201d7dd386bfdb99ee1a09b82.zip
Get the version source from the (more) correct place.
Remove the obsolete cvsbug.sh script
Notes
Notes: svn path=/head/; revision=81420
Diffstat (limited to 'gnu/usr.bin/cvs')
-rw-r--r--gnu/usr.bin/cvs/cvsbug/Makefile15
1 files 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 <bsd.prog.mk>