home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Professional
/
OS2PRO194.ISO
/
os2
/
prgramer
/
rcs
/
sources
/
locate_r.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-01-19
|
885b
|
36 lines
#ifndef lint
static char rcsid[] = "$Id: locate_rcs.c,v 1.5 89/11/19 23:20:05 berliner Exp $";
#endif
/*
* Copyright (c) 1989, Brian Berliner
*
* You may distribute under the terms of the GNU General Public License
* as specified in the README file that comes with the CVS 1.0 kit.
*
* Locate RCS File
*
* Called when the RCS file sought may be in the Attic directory.
* Sets the global Rcs variable to the correct file.
*/
#include "cvs.h"
Locate_RCS()
{
char old[MAXPATHLEN];
(void) sprintf(Rcs, "%s%c%s%s", Repository, DIRSEP, User, RCSEXT);
(void) sprintf(old, "%s%c%s%c%s%s", Repository, DIRSEP, CVSATTIC,
DIRSEP, User, RCSEXT);
if (!isreadable(Rcs)) {
if (isreadable(old)) {
(void) strcpy(Rcs, old);
} else {
/*
* it is treated as if it were in the repository
*/
}
}
}