1/* Check out working files from revisions of RCS files. */ 2 3/* Copyright 1982, 1988, 1989 Walter Tichy 4 Copyright 1990, 1991, 1992, 1993, 1994, 1995 Paul Eggert 5 Distributed under license by the Free Software Foundation, Inc. 6 7This file is part of RCS. 8 --- 15 unchanged lines hidden (view full) --- 24Report problems and direct all questions to: 25 26 rcs-bugs@cs.purdue.edu 27 28*/ 29 30/* 31 * $Log: co.c,v $ |
32 * Revision 1.4 1995/10/28 21:49:12 peter 33 * First part of import conflict merge from rcs-5.7 import. 34 * 35 * All those $Log$ entries, combined with the whitespace changes are a real 36 * pain. 37 * 38 * I'm committing this now, before it's completely finished to get it compiling 39 * and working again ASAP. Some of the FreeBSD specific features are not working 40 * in this commit yet (mainly rlog stuff and $FreeBSD: head/gnu/usr.bin/rcs/co/co.c 11927 1995-10-29 19:31:11Z peter $ support) 41 * |
42 * Revision 5.18 1995/06/16 06:19:24 eggert 43 * Update FSF address. 44 * 45 * Revision 5.17 1995/06/01 16:23:43 eggert 46 * (main, preparejoin): Pass argument instead of using `join' static variable. 47 * (main): Add -kb. 48 * 49 * Revision 5.16 1994/03/17 14:05:48 eggert --- 134 unchanged lines hidden (view full) --- 184static int buildjoin P((char const*)); 185static int preparejoin P((char*)); 186static int rmlock P((struct hshentry const*)); 187static int rmworkfile P((void)); 188static void cleanup P((void)); 189 190static char const quietarg[] = "-q"; 191 |
192static char const *expandarg, *suffixarg, *versionarg, *zonearg, *incexcarg; |
193static char const **joinlist; /* revisions to be joined */ 194static int joinlength; 195static FILE *neworkptr; 196static int exitstatus; 197static int forceflag; 198static int lastjoin; /* index of last element in joinlist */ 199static int lockflag; /* -1 -> unlock, 0 -> do nothing, 1 -> lock */ 200static int mtimeflag; 201static struct hshentries *gendeltas; /* deltas to be generated */ 202static struct hshentry *targetdelta; /* final delta to be generated */ 203static struct stat workstat; 204 |
205mainProg(coId, "co", "$Id: co.c,v 1.4 1995/10/28 21:49:12 peter Exp $") |
206{ 207 static char const cmdusage[] = 208 "\nco usage: co -{fIlMpqru}[rev] -ddate -jjoins -ksubst -sstate -T -w[who] -Vn -xsuff -zzone file ..."; 209 210 char *a, *joinflag, **newargv; 211 char const *author, *date, *rev, *state; 212 char const *joinname, *newdate, *neworkname; 213 int changelock; /* 1 if a lock has been changed, -1 if error */ --- 106 unchanged lines hidden (view full) --- 320 setRCSversion(versionarg); 321 break; 322 323 case 'z': 324 zonearg = *argv; 325 zone_set(a); 326 break; 327 |
328 case 'K': /* set keyword inclusions/exclusions */ 329 incexcarg = *argv; 330 setIncExc(incexcarg); 331 break; 332 |
333 case 'k': /* set keyword expand mode */ 334 expandarg = *argv; 335 if (0 <= expmode) redefined('k'); 336 if (0 <= (expmode = str2expmode(a))) 337 break; 338 /* fall into */ 339 default: 340 unknown: --- 502 unchanged lines hidden --- |