co(1) manual, add -Z where were missed.
/*
* $Log: ci.c,v $
+ * Revision 1.3 1996/05/07 12:02:52 mickey
+ * change -L option name to -Z, note that in
+ * co(1) manual, add -Z where were missed.
+ *
* Revision 1.2 1996/04/19 12:40:00 mickey
* -L<string> option added to support LOCALID behaviour.
* maybe set up in RCSINIT environment variable.
static struct stat workstat;
static struct Symrev *assoclst, **nextassoc;
-mainProg(ciId, "ci", "$Id: ci.c,v 1.2 1996/04/19 12:40:00 mickey Exp $")
+mainProg(ciId, "ci", "$Id: ci.c,v 1.3 1996/05/07 12:02:52 mickey Exp $")
{
static char const cmdusage[] =
- "\nci usage: ci -{fIklMqru}[rev] -d[date] -mmsg -{nN}name -sstate -ttext -T -Vn -wwho -xsuff -zzone file ...";
+ "\nci usage: ci -{fIklMqru}[rev] -d[date] -mmsg -{nN}name -sstate -ttext -T -Vn -wwho -xsuff -zzone -ZlocalId file ...";
static char const default_state[] = DEFAULTSTATE;
char altdate[datesize];
keepflag=true;
goto revno;
- case 'L':
- setRCSlocalId(*argv+2);
+ case 'Z':
+ setRCSlocalId(a);
break;
case 'm':
/*
* $Log: ident.c,v $
+ * Revision 1.2 1996/05/07 12:03:10 mickey
+ * change -L option name to -Z, note that in
+ * co(1) manual, add -Z where were missed.
+ *
* Revision 1.1.1.1 1995/10/18 08:41:00 deraadt
* initial import of NetBSD tree
*
static int match P((FILE*));
static void scanfile P((FILE*,char const*,int));
-mainProg(identId, "ident", "$Id: ident.c,v 1.1.1.1 1995/10/18 08:41:00 deraadt Exp $")
+mainProg(identId, "ident", "$Id: ident.c,v 1.2 1996/05/07 12:03:10 mickey Exp $")
/* Ident searches the named files for all occurrences
* of the pattern $keyword: text $.
*/
quiet = 1;
break;
+ case 'Z':
+ setRCSlocalId(a+1);
+ a += strlen(a) - 1;
+ break;
+
case 'V':
VOID printf("RCS version %s\n", RCS_version_string);
exitmain(0);
default:
VOID fprintf(stderr,
- "ident: usage: ident -{qV} [file...]\n"
+ "ident: usage: ident -{qV} [-ZlocalId] [file...]\n"
);
exitmain(1);
break;
}
#if RCS_lint
- void identExit() { _exit(EXIT_FAILURE); }
+#define exiterr identExit
#endif
+ void
+exiterr()
+{
+ _exit(EXIT_FAILURE);
+}
static void
}
-mainProg(mergeId, "merge", "$Id: merge.c,v 1.1.1.1 1995/10/18 08:41:02 deraadt Exp $")
+mainProg(mergeId, "merge", "$Id: merge.c,v 1.2 1996/05/07 12:03:16 mickey Exp $")
{
register char const *a;
char const *arg[3], *label[3], *edarg = 0;
--argc;
break;
+ case 'Z':
+ break;
+
case 'V':
printf("RCS version %s\n", RCS_version_string);
exitmain(0);
/*
* $Log: rcs.c,v $
+ * Revision 1.2 1996/05/07 12:03:21 mickey
+ * change -L option name to -Z, note that in
+ * co(1) manual, add -Z where were missed.
+ *
* Revision 1.1.1.1 1995/10/18 08:41:03 deraadt
* initial import of NetBSD tree
*
static struct hshentry *cuthead, *cuttail, *delstrt;
static struct hshentries *gendeltas;
-mainProg(rcsId, "rcs", "$Id: rcs.c,v 1.1.1.1 1995/10/18 08:41:03 deraadt Exp $")
+mainProg(rcsId, "rcs", "$Id: rcs.c,v 1.2 1996/05/07 12:03:21 mickey Exp $")
{
static char const cmdusage[] =
- "\nrcs usage: rcs -{ae}logins -Afile -{blu}[rev] -cstring -{iILqTU} -ksubst -mrev:msg -{nN}name[:[rev]] -orange -sstate[:rev] -t[text] -Vn -xsuff -zzone file ...";
+ "\nrcs usage: rcs -{ae}logins -Afile -{blu}[rev] -cstring -{iILqTU} -ksubst -mrev:msg -{nN}name[:[rev]] -orange -sstate[:rev] -t[text] -Vn -xsuff -zzone -ZlocalId file ...";
char *a, **newargv, *textfile;
char const *branchsym, *commsyml;
zone_set(a);
break;
+ case 'Z':
+ setRCSlocalId(a);
+ break;
+
case 'k': /* set keyword expand mode */
if (0 <= expmode) redefined('k');
if (0 <= (expmode = str2expmode(a)))
static RILE *workptr;
static int exitstatus;
-mainProg(rcscleanId, "rcsclean", "$Id: rcsclean.c,v 1.1.1.1 1995/10/18 08:41:03 deraadt Exp $")
+mainProg(rcscleanId, "rcsclean", "$Id: rcsclean.c,v 1.2 1996/05/07 12:03:28 mickey Exp $")
{
static char const usage[] =
- "\nrcsclean: usage: rcsclean -ksubst -{nqru}[rev] -T -Vn -xsuff -zzone file ...";
+ "\nrcsclean: usage: rcsclean -ksubst -{nqru}[rev] -T -Vn -xsuff -zzone -ZlocalId file ...";
static struct buf revision;
zone_set(a);
break;
+ case 'Z':
+ setRCSlocalId(a);
+ break;
+
default:
unknown:
error("unknown option: %s%s", *argv, usage);
/*
* $Log: rcsdiff.c,v $
+ * Revision 1.3 1996/05/07 12:03:33 mickey
+ * change -L option name to -Z, note that in
+ * co(1) manual, add -Z where were missed.
+ *
* Revision 1.2 1996/01/15 21:40:37 niklas
* Fix typo so two -L options can be fed to rcsdiff.
*
static RILE *workptr;
static struct stat workstat;
-mainProg(rcsdiffId, "rcsdiff", "$Id: rcsdiff.c,v 1.2 1996/01/15 21:40:37 niklas Exp $")
+mainProg(rcsdiffId, "rcsdiff", "$Id: rcsdiff.c,v 1.3 1996/05/07 12:03:33 mickey Exp $")
{
static char const cmdusage[] =
- "\nrcsdiff usage: rcsdiff -ksubst -q -rrev1 [-rrev2] -Vn -xsuff -zzone [diff options] file ...";
+ "\nrcsdiff usage: rcsdiff -ksubst -q -rrev1 [-rrev2] -Vn -xsuff -zzone -ZlocalId [diff options] file ...";
int revnums; /* counter for revision numbers given */
char const *rev1, *rev2; /* revision numbers from command line */
versionarg = *argv;
setRCSversion(versionarg);
goto option_handled;
+ case 'Z':
+ setRCSlocalId(*argv + 2);
+ goto option_handled;
case 'k':
expandarg = *argv;
if (0 <= str2expmode(expandarg+2))
/*
* $Log: rcsmerge.c,v $
+ * Revision 1.2 1996/05/07 12:03:37 mickey
+ * change -L option name to -Z, note that in
+ * co(1) manual, add -Z where were missed.
+ *
* Revision 1.1.1.1 1995/10/18 08:41:04 deraadt
* initial import of NetBSD tree
*
static char const co[] = CO;
-mainProg(rcsmergeId, "rcsmerge", "$Id: rcsmerge.c,v 1.1.1.1 1995/10/18 08:41:04 deraadt Exp $")
+mainProg(rcsmergeId, "rcsmerge", "$Id: rcsmerge.c,v 1.2 1996/05/07 12:03:37 mickey Exp $")
{
static char const cmdusage[] =
- "\nrcsmerge usage: rcsmerge -rrev1 [-rrev2] -ksubst -{pq}[rev] -Vn -xsuff -zzone file";
+ "\nrcsmerge usage: rcsmerge -rrev1 [-rrev2] -ksubst -{pq}[rev] -Vn -xsuff -zzone -ZlocalId file";
static char const quietarg[] = "-q";
register int i;
versionarg = *argv;
setRCSversion(versionarg);
break;
-
+ case 'Z':
+ setRCSlocalId(a);
+ break;
case 'k':
expandarg = *argv;
if (0 <= str2expmode(expandarg+2))
/*
* $Log: rlog.c,v $
+ * Revision 1.2 1996/05/07 12:03:44 mickey
+ * change -L option name to -Z, note that in
+ * co(1) manual, add -Z where were missed.
+ *
* Revision 1.1.1.1 1995/10/18 08:41:04 deraadt
* initial import of NetBSD tree
*
static struct stateattri *statelist;
-mainProg(rlogId, "rlog", "$Id: rlog.c,v 1.1.1.1 1995/10/18 08:41:04 deraadt Exp $")
+mainProg(rlogId, "rlog", "$Id: rlog.c,v 1.2 1996/05/07 12:03:44 mickey Exp $")
{
static char const cmdusage[] =
- "\nrlog usage: rlog -{bhLNRt} -ddates -l[lockers] -r[revs] -sstates -Vn -w[logins] -xsuff -zzone file ...";
+ "\nrlog usage: rlog -{bhLNRt} -ddates -l[lockers] -r[revs] -sstates -Vn -w[logins] -xsuff -zzone -ZlocalId file ...";
register FILE *out;
char *a, **newargv;
setRCSversion(*argv);
break;
+ case 'Z':
+ /* add local Id keyword */
+ setRCSlocalId(a);
+ break;
+
default:
unknown:
error("unknown option: %s%s", *argv, cmdusage);