2002-08-26 11:04:15 +08:00
|
|
|
<sect2>
|
|
|
|
<title>Command explanations</title>
|
|
|
|
|
2003-04-06 00:32:17 +08:00
|
|
|
<para><userinput>mkdir /cvsroot</userinput> : Create the CVS repository
|
2002-08-26 11:04:15 +08:00
|
|
|
directory.</para>
|
|
|
|
|
2003-04-06 00:32:17 +08:00
|
|
|
<para><userinput>chmod 1777 /cvsroot</userinput> : Sticky bit
|
2002-08-26 11:04:15 +08:00
|
|
|
permissions for CVSROOT.</para>
|
|
|
|
|
2003-04-06 00:32:17 +08:00
|
|
|
<para><userinput>export CVSROOT=/cvsroot</userinput> : Specify new
|
2002-08-26 11:04:15 +08:00
|
|
|
CVSROOT for all cvs commands.</para>
|
|
|
|
|
2003-04-06 00:32:17 +08:00
|
|
|
<para><userinput>cvs init</userinput> : Initialize the new CVS
|
2002-08-26 11:04:15 +08:00
|
|
|
repository.</para>
|
|
|
|
|
|
|
|
<para><userinput>cvs import -m "repository test" cvstest vendortag
|
2003-04-06 00:32:17 +08:00
|
|
|
releasetag</userinput> : All source code modules must be imported
|
2002-08-26 11:04:15 +08:00
|
|
|
into the CVS repository before use, with the cvs import command. the
|
|
|
|
-m flags specifies an initial descriptive entry for the new module.
|
|
|
|
the "cvstest" parameter is the name used for the module in all
|
|
|
|
subsequent cvs commands. the "vendortag" and "releasetag" parameters
|
|
|
|
are used to further identify each CVS module and are mandatory whether
|
|
|
|
used or not.</para>
|
|
|
|
|
|
|
|
<para><userinput>(grep anonymous /etc/passwd || useradd anonymous -s
|
2003-04-06 00:32:17 +08:00
|
|
|
/bin/false)</userinput> : Check for an existing anonymous user and
|
2002-08-26 11:04:15 +08:00
|
|
|
create one if not found.</para>
|
|
|
|
|
2003-04-06 00:32:17 +08:00
|
|
|
<para><userinput>echo anonymous: > /cvsroot/CVSROOT/passwd
|
|
|
|
</userinput> : Add the anonymous user to the CVS passwd file, which is
|
2002-08-26 11:04:15 +08:00
|
|
|
unused for anything else in this configuration.</para>
|
|
|
|
|
2003-04-06 00:32:17 +08:00
|
|
|
<para><userinput>echo anonymous > /cvsroot/CVSROOT/readers</userinput> : Add the anonymous user to the CVS readers file, a list of
|
2002-08-26 11:04:15 +08:00
|
|
|
users who have read only access to the repository.</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|