Subject: misc/3512: Improved RCS LocalID support
To: None <gnats-bugs@gnats.netbsd.org>
From: Ty Sarna <tsarna@endicor.com>
List: netbsd-bugs
Date: 04/18/1997 12:52:05
>Number:         3512
>Category:       misc
>Synopsis:       Improved RCS LocalID support
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 18 10:05:01 1997
>Last-Modified:
>Originator:     Ty Sarna
>Organization:
	Endicor Technologies, Inc., San Antonio, Texas
>Release:        NetBSD-current 970415
>Environment:
System: NetBSD iocane.endicor.com 1.2D-970415 NetBSD 1.2D-970415 (IOCANE) #4: Tue Apr 15 11:56:58 CDT 1997 tsarna@iocane.endicor.com:/usr/src/sys/arch/i386/compile/IOCANE i386


>Description:
	Some time ago I submitted patches to make it easier to get RCS
	to support a local Id keyword ($NetBSD$ or $Endicor$ for
	example). The patches, which were committed, required the user
	to edit the top-level RCS makefile to enable a local Id keyword.

	Since that time, /etc/mk.conf has been introduced, which allows
	this to be done more cleanly, so in the spirit of PR#3510,
	enclosed is a patch that makes it possible to add a local Id
	keyword without editiing anything in the source tree.
>How-To-Repeat:
	Try to get RCS to support a local Id keyword without editing
	anything under /usr/src. Fail.
>Fix:
*** /usr/src/gnu/usr.bin/rcs/lib/Makefile.orig	Tue Apr 15 00:01:22 1997
--- /usr/src/gnu/usr.bin/rcs/lib/Makefile	Fri Apr 18 12:40:49 1997
***************
*** 4,13 ****
  # the middle of CVS/RCS changes
  CFLAGS+=-DFSYNC_ALL
  
- # If you wish to use a different Id token in addition to Id,
- # uncomment the following line and edit to taste.
- #CFLAGS+=-DLOCALID=\"Foo\"
- 
  LIB=	rcs
  SRCS=	maketime.c merger.c partime.c rcsedit.c rcsfcmp.c rcsfnms.c rcsgen.c \
  	rcskeep.c rcskeys.c rcslex.c rcsmap.c rcsrev.c rcssyn.c rcstime.c \
--- 4,9 ----
***************
*** 19,21 ****
--- 15,24 ----
  install:
  
  .include <bsd.lib.mk>
+ 
+ # If you wish to use a different Id token in addition to Id,
+ # then set RCSLOCALID in the environment or /etc/mk.conf
+ # example: "RCSLOCALID=Foo"
+ .if defined(RCSLOCALID)
+ CFLAGS+=-DLOCALID=\"${RCSLOCALID}\"
+ .endif
>Audit-Trail:
>Unformatted: