Only evaluate CVS version once, when necessary.
Eliminates the need in sed(1) during install.
This commit is contained in:
parent
e61929ee3e
commit
f065a7946f
@ -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" \
|
||||
|
Loading…
Reference in New Issue
Block a user