summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/cvs/cvs/create_adm.c
diff options
context:
space:
mode:
authornate <nate@FreeBSD.org>1995-03-31 07:45:33 +0000
committernate <nate@FreeBSD.org>1995-03-31 07:45:33 +0000
commit02981a52b9b7d28ced57a7a8115421fdd16789eb (patch)
tree958f60d7dbf93543b5943afdbdf191d284685c48 /gnu/usr.bin/cvs/cvs/create_adm.c
parent4de36c4e9835a2fa1c9db2a6d16811ace584305a (diff)
downloadFreeBSD-src-02981a52b9b7d28ced57a7a8115421fdd16789eb.zip
FreeBSD-src-02981a52b9b7d28ced57a7a8115421fdd16789eb.tar.gz
Original sources from CVS-1.4A2 munged to fit our directory structure.
Diffstat (limited to 'gnu/usr.bin/cvs/cvs/create_adm.c')
-rw-r--r--gnu/usr.bin/cvs/cvs/create_adm.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/gnu/usr.bin/cvs/cvs/create_adm.c b/gnu/usr.bin/cvs/cvs/create_adm.c
index 911258e..55eb649 100644
--- a/gnu/usr.bin/cvs/cvs/create_adm.c
+++ b/gnu/usr.bin/cvs/cvs/create_adm.c
@@ -3,7 +3,7 @@
* Copyright (c) 1989-1992, 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.3 kit.
+ * specified in the README file that comes with the CVS 1.4 kit.
*
* Create Administration.
*
@@ -14,7 +14,8 @@
#include "cvs.h"
#ifndef lint
-static char rcsid[] = "@(#)create_adm.c 1.24 92/03/31";
+static char rcsid[] = "$CVSid: @(#)create_adm.c 1.28 94/09/23 $";
+USE(rcsid)
#endif
void
@@ -31,9 +32,6 @@ Create_Admin (dir, repository, tag, date)
if (noexec)
return;
- if (!isdir (repository))
- error (1, 0, "there is no repository %s", repository);
-
if (dir != NULL)
(void) sprintf (tmp, "%s/%s", dir, CVSADM);
else
@@ -58,6 +56,11 @@ Create_Admin (dir, repository, tag, date)
(void) strcpy (tmp, CVSADM);
make_directory (tmp);
+#ifdef CVSADM_ROOT
+ /* record the current cvs root for later use */
+
+ Create_Root (dir, CVSroot);
+#endif /* CVSADM_ROOT */
if (dir != NULL)
(void) sprintf (tmp, "%s/%s", dir, CVSADM_REP);
else
OpenPOWER on IntegriCloud