diff options
author | ru <ru@FreeBSD.org> | 2003-09-07 13:09:47 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2003-09-07 13:09:47 +0000 |
commit | 30213bfe8539904a02957c0fd1a34225091672f0 (patch) | |
tree | fed1e286e429e4294c282e3a2801bb535e5673d5 /gnu/usr.bin/cvs | |
parent | 8319013e497464034404727970f4641a06a0411e (diff) | |
download | FreeBSD-src-30213bfe8539904a02957c0fd1a34225091672f0.zip FreeBSD-src-30213bfe8539904a02957c0fd1a34225091672f0.tar.gz |
Only evaluate CVS version once, when necessary.
Eliminates the need in sed(1) during install.
Diffstat (limited to 'gnu/usr.bin/cvs')
-rw-r--r-- | gnu/usr.bin/cvs/lib/Makefile | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gnu/usr.bin/cvs/lib/Makefile b/gnu/usr.bin/cvs/lib/Makefile index 2d0f439..441f54b 100644 --- a/gnu/usr.bin/cvs/lib/Makefile +++ b/gnu/usr.bin/cvs/lib/Makefile @@ -16,9 +16,6 @@ CFLAGS+= -DHAVE_CONFIG_H YFLAGS= CLEANFILES+= config.h -VERSION!= sed < ${CVSDIR}/configure \ - -e '/^[ ]*VERSION=/!d' -e 's/.*=\(.*\)/\1/' -e q - CVS_UMASK_DFLT?= 002 CVS_ADMIN_GROUP?= cvsadmin CVS_TMPDIR_DFLT?= /tmp @@ -29,7 +26,9 @@ SRCS= config.h argmatch.c getdate.y getline.c \ xgetwd.c yesno.c config.h: config.h.proto - sed -e "s,@VERSION@,${VERSION}-FreeBSD,g" \ + version=`sed < ${CVSDIR}/configure \ + -e '/^[ ]*VERSION=/!d' -e 's/.*=\(.*\)/\1/' -e q`; \ + sed -e "s,@VERSION@,$${version}-FreeBSD,g" \ -e "s,@UMASK_DFLT@,${CVS_UMASK_DFLT},g" \ -e "s,@TMPDIR_DFLT@,${CVS_TMPDIR_DFLT},g" \ -e "s,@CVS_ADMIN_GROUP@,${CVS_ADMIN_GROUP},g" \ |