summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/cvs/cvsbug
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2000-09-04 21:46:56 +0000
committerchristos <christos@NetBSD.org>2000-09-04 21:46:56 +0000
commit7803a4e4eff3e1fcfd26156a9c448fae2e3ef3c3 (patch)
tree18b8eb18ba9df0376cb63dee6b56037d5bd7b397 /gnu/usr.bin/cvs/cvsbug
parent16cc52a1aada59725a28ade9c5a877d98a4b57d8 (diff)
Add reach-over Makefiles for cvs
Diffstat (limited to 'gnu/usr.bin/cvs/cvsbug')
-rw-r--r--gnu/usr.bin/cvs/cvsbug/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/gnu/usr.bin/cvs/cvsbug/Makefile b/gnu/usr.bin/cvs/cvsbug/Makefile
new file mode 100644
index 00000000000..8618814a32f
--- /dev/null
+++ b/gnu/usr.bin/cvs/cvsbug/Makefile
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1 2000/09/04 21:46:56 christos Exp $
+
+.include "../Makefile.inc"
+
+DIST=${IDIST}/src
+.PATH: ${DIST}
+PROG= cvsbug
+
+DIST= ${IDIST}/src
+.PATH: ${DIST} ${IDIST}/man
+
+MAN= cvsbug.8
+SRCS= cvsbug.sh
+CLEANFILES+=.fname
+
+cvsbug: cvsbug.sh
+ sed -e 's,xLIBDIRx,Not installed,g' \
+ -e "s,xVERSIONx,`cat .fname`,g" ${.ALLSRC} > ${.TARGET}
+ chmod a+x ${.TARGET}
+
+cvsbug: .fname
+
+.fname: version.c
+ echo > .fname \
+ cvs-`sed < ${.ALLSRC} \
+ -e '/version_string/!d' \
+ -e 's/[^0-9.]*\([0-9.]*\).*/\1/' \
+ -e q`
+
+.include <bsd.prog.mk>