NetBSD Problem Report #452
From gnats Thu Sep 1 15:50:28 1994
Received: from dptspd.sat.datapoint.com (dptspd.sat.datapoint.com [130.137.64.2]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with SMTP id PAA04387 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Thu, 1 Sep 1994 15:50:26 -0700
Message-Id: <199409010107.UAA00251@rous.endicor.com>
Date: Wed, 31 Aug 1994 20:07:39 -0500
From: tsarna@endicor.com
Reply-To: tsarna@endicor.com
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: Make rcs local Id keyword support more flexible
X-Send-Pr-Version: 3.2
>Number: 452
>Category: bin
>Synopsis: Make rcs local Id keyword support more flexible
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Thu Sep 01 16:05:04 +0000 1994
>Closed-Date: Mon Sep 19 02:34:49 +0000 1994
>Last-Modified:
>Originator: Ty Sarna
>Release:
>Organization:
Ty Sarna Endicor Technologies, Inc.
tsarna@endicor.com P.O. Box 29000 #355
(210) 650-4988 San Antonio, TX 78229
>Environment:
System: NetBSD rous.endicor.com 1.0_BETA NetBSD 1.0_BETA (ROUS) #119: Wed Aug 17 12:31:36 CDT 1994 root@rous.endicor.com:/usr/src/sys/arch/amiga/compile/ROUS amiga
>Description:
It's nice to have a local equivalent for the $Id$ keyword (like
$NetBSD$, $XConsortium$, etc), to prevent conflicts with other users of
RCS/CVS (ttrashing each other's version identifications). NetBSD rcs has
this feature already, enabled by -DNETBSD_DEVELOPMENT. The patches below
make this more flexible so the rest of us can easily have a local Id too.
With these changes, you can simply replace -DNETBSD_DEVELOPMENT with
-DLOCALID=\"NetBSD\" in your makefile, we can use -DLOCALID=\"Endicor\",
and x.org could (if they were using NetBSD) use -DLOCALID=\"XConsortium\",
etc.
>How-To-Repeat:
>Fix:
Apply this in src/gnu/usr.bin/rcs/lib
*** rcsbase.h.orig Wed Aug 31 19:43:25 1994
--- rcsbase.h Wed Aug 31 19:43:37 1994
***************
*** 266,272 ****
#define IDH "Id"
#define LOCKER "Locker"
#define LOG "Log"
- #define NETBSDH "NetBSD"
#define RCSFILE "RCSfile"
#define REVISION "Revision"
#define SOURCE "Source"
--- 266,271 ----
***************
*** 275,282 ****
enum markers { Nomatch, Author, Date, Header, Id,
Locker, Log,
! #ifdef NETBSD_DEVELOPMENT
! NetBSDH,
#endif
RCSfile, Revision, Source, State };
/* This must be in the same order as rcskeys.c's Keyword[] array. */
--- 274,281 ----
enum markers { Nomatch, Author, Date, Header, Id,
Locker, Log,
! #ifdef LOCALID
! LocalId,
#endif
RCSfile, Revision, Source, State };
/* This must be in the same order as rcskeys.c's Keyword[] array. */
*** rcsedit.c.orig Wed Aug 31 19:43:37 1994
--- rcsedit.c Wed Aug 31 19:43:50 1994
***************
*** 843,850 ****
break;
case Header:
case Id:
! #ifdef NETBSD_DEVELOPMENT
! case NetBSDH:
#endif
aprintf(out, "%s %s %s %s %s",
marker!=Header || RCSv<VERSION(4)
--- 843,850 ----
break;
case Header:
case Id:
! #ifdef LOCALID
! case LocalId:
#endif
aprintf(out, "%s %s %s %s %s",
marker!=Header || RCSv<VERSION(4)
*** rcskeep.c.orig Wed Aug 31 19:43:37 1994
--- rcskeep.c Wed Aug 31 19:43:50 1994
***************
*** 130,137 ****
break;
case Header:
case Id:
! #ifdef NETBSD_DEVELOPMENT
! case NetBSDH:
#endif
if (!(
getval(fp, (struct buf*)nil, false) &&
--- 130,137 ----
break;
case Header:
case Id:
! #ifdef LOCALID
! case LocalId:
#endif
if (!(
getval(fp, (struct buf*)nil, false) &&
*** rcskeys.c.orig Wed Aug 31 19:43:37 1994
--- rcskeys.c Wed Aug 31 19:43:50 1994
***************
*** 38,45 ****
nil,
AUTHOR, DATE, HEADER, IDH,
LOCKER, LOG,
! #ifdef NETBSD_DEVELOPMENT
! NETBSDH,
#endif
RCSFILE, REVISION, SOURCE, STATE
};
--- 38,45 ----
nil,
AUTHOR, DATE, HEADER, IDH,
LOCKER, LOG,
! #ifdef LOCALID
! LOCALID,
#endif
RCSFILE, REVISION, SOURCE, STATE
};
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: mycroft
State-Changed-When: Sun Sep 18 19:34:49 PDT 1994
State-Changed-Why:
Done.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.