summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-08-10 11:24:23 +0000
committerpeter <peter@FreeBSD.org>2001-08-10 11:24:23 +0000
commitf9feb25a7542f5651873fa34170c6e5179299cb5 (patch)
tree8766dc175f5a30aeedf5c7810e8fb5f31c34fc44 /gnu
parente0b94042d7e296c130ace0da72800b3718bedaaa (diff)
downloadFreeBSD-src-f9feb25a7542f5651873fa34170c6e5179299cb5.zip
FreeBSD-src-f9feb25a7542f5651873fa34170c6e5179299cb5.tar.gz
Use some slightly less horrible make magic for doing the version stuff.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/cvs/cvs/Makefile14
-rw-r--r--gnu/usr.bin/cvs/cvsbug/Makefile15
2 files changed, 12 insertions, 17 deletions
diff --git a/gnu/usr.bin/cvs/cvs/Makefile b/gnu/usr.bin/cvs/cvs/Makefile
index 1d62974..4aabe19 100644
--- a/gnu/usr.bin/cvs/cvs/Makefile
+++ b/gnu/usr.bin/cvs/cvs/Makefile
@@ -40,16 +40,12 @@ DISTRIBUTION= krb4
CFLAGS+= -DENCRYPTION
.endif
-CLEANFILES+= version.c ver
+CLEANFILES+= version.c
+VERSION!= sed < ${CVSDIR}/configure \
+ -e '/^VERSION=/!d' -e 's/.*=\(.*\)/\1/' -e q
-ver: configure
- echo > ${.TARGET} `sed < ${.ALLSRC} \
- -e '/^VERSION=/!d' \
- -e 's/.*=\(.*\)/\1/' \
- -e q`
-
-version.c: ver version.c.in
- sed -e "s,@VERSION@,`cat ver`,g" ${CVSDIR}/src/version.c.in > ${.TARGET}
+version.c: version.c.in
+ sed -e "s,@VERSION@,${VERSION}-FreeBSD,g" ${.ALLSRC} > ${.TARGET}
#
# Regression test support
diff --git a/gnu/usr.bin/cvs/cvsbug/Makefile b/gnu/usr.bin/cvs/cvsbug/Makefile
index 97bf940..f54ac6f 100644
--- a/gnu/usr.bin/cvs/cvsbug/Makefile
+++ b/gnu/usr.bin/cvs/cvsbug/Makefile
@@ -11,15 +11,14 @@ MAINTAINER= peter@FreeBSD.org
SCRIPTS= cvsbug
MAN= cvsbug.8
-CLEANFILES+= cvsbug ver
+CLEANFILES+= version.c
+VERSION!= sed < ${CVSDIR}/configure \
+ -e '/^VERSION=/!d' -e 's/.*=\(.*\)/\1/' -e q
-ver: configure
- echo > ${.TARGET} `sed < ${.ALLSRC} \
- -e '/^VERSION=/!d' \
- -e 's/.*=\(.*\)/\1/' \
- -e q`
+version.c: version.c.in
+ sed -e "s,@VERSION@,${VERSION}-FreeBSD,g" ${.ALLSRC} > ${.TARGET}
-cvsbug: ver cvsbug.in
- sed -e "s,@VERSION@,`cat ver`,g" ${CVSDIR}/src/cvsbug.in > ${.TARGET}
+cvsbug: cvsbug.in
+ sed -e "s,@VERSION@,${VERSION}-FreeBSD,g" ${.ALLSRC} > ${.TARGET}
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud