blob: ab9b37994c5ee536acbfa47b75caf6885d294d58 [file] [log] [blame]
<meta http-equiv="REFRESH" content="10;url=http://wiki.services.openoffice.org/wiki/Documentation/FAQ">
<h3>This page is outdated. You will be redirected to <a href="http://wiki.services.openoffice.org/wiki/Documentation/FAQ">http://wiki.services.openoffice.org
/wiki/Documentation/FAQ</a> shortly.</h3>
<div style="margin-bottom: 10em;"></div>
<p><a href="../../index.html">Documentation</a> / <a href="../index.html">User FAQ</a> / <a href="index.html">Maintainers' FAQ</a> / <a href="019.html" accesskey="p">Previous</a>-<a href="021.html" accesskey="n">Next</a></p>
<h3>How do I add new files to the CVS directory?</h3>
<ol>
<li>First, build the files that you wish to add in your local directory. Add new folders and files to this area using your favorite file manager. When you are ready to upload your files, create a tunnel.
<li>After you establish a tunnel, minimize that first terminal. Use it again to close the tunnel when you are done moving files to or from the site. Open a second terminal for your work. You will not work in the terminal where you established the tunnel.</li>
<li>Type <code>pwd</code> in the working terminal to verify that you are in your home directory.</li>
<li>Use the <a href="032.html">change directory</a> <code>cd</code> command in the second terminal to move to the directory of the file or folder you wish to commit.</li>
<li>Use the <code>add</code> command to add a new directory to the OpenOffice.org file server. Type<br/>
<code>cvs -d :pserver:username@projectname.domain.net:/cvs add [projectname]</code>
<br/>in the second terminal, where:
<ul>
<li><code>username</code> is your openoffice.org user login,</li>
<li><code>projectname.domain.net</code> is the path to where the file lives</li>
<li><code>[projectname]</code> is the name of a file or directory in the CVS file server, and</li>
</ul>
</li>
<li>The first step of the add command for a file is complete when your cursor comes back in the working terminal. You must now <a href="018.html">commit</a> the file to complete the process of adding a file to the OpenOffice.org file server.</li>
</ol>
<p><b>Examples of the add command</b> for user zzzzzz, (assuming pwd = /home/zzzzzz):</p>
<ol>
<li>Type<br/>
<code>cvs -d :pserver:zzzzzz@localhost:/cvs add documentation</code>
<br/>in the second terminal to add a documentation directory.</li>
<li>Type<br/>
<code>cd documentation/www</code>
<br/>Type<br/>
<code>cvs -d :pserver:zzzzzz@localhost:/cvs add faqs</code>
<br/>in the second terminal to add an faqs directory.</li>
<li>Type<br/>
<code>cd documentation/www/faqs</code>
<br/>Type<br/>
<code>cvs -d :pserver:zzzzzz@localhost:/cvs add compatibility</code>
<br/>in the second terminal to add a compatibility directory in the faqs folder.</li>
<li>Type<br/>
<code>cd marketing/www</code>
<br/>Type<br/>
<code>cvs -d :pserver:zzzzzz@localhost:/cvs add </code>
<br/>in the second terminal to add an the index page from marketing project directory.</li>
<li>Type<br/>
<code>cd qa/www</code>
<br/>Type<br/>
<code>cvs -d :pserver:zzzzzz@localhost:/cvs add index.html</code>
<br/>in the second terminal to update only the index page from qa project directory.</li>
</ol>
<p>In actuality, many of the above commands will fail, because these directories already exist. If a directory exists, you will see a message in your terminal, and the add command will not execute.</p>
<p><b>Tip:</b> In a terminal, use the up-arrow key to cycle through the past commands used. You can select and edit commands, instead of typing them each time. The computer will only read what is visible at the command prompt when you hit the Enter key.</p>
<p><b>For more information:</b></p>
<ul>
<li><a href="https://www.cvshome.org/docs/manual/cvs-1.11.18/cvs_7.html#SEC68">Adding, removing, and renaming files and directories</a></li>
<li><a href="https://www.cvshome.org/docs/ref.html">CVS Quick Reference</a></li>
<li><a href="http://cvsbook.red-bean.com/cvsbook.html#Adding%20Files">Adding Files</a></li>
<li><a href="https://www.cvshome.org/docs/blandy.html">Introduction to CVS</a></li>
<li><a href="025.html">Is there a place where I can see the CVS directory tree?</a></li>
</ul>
<p><a href="../../index.html">Documentation</a> / <a href="../index.html">User FAQ</a> / <a href="index.html">Maintainers' FAQ</a> / <a href="019.html" accesskey="p">Previous</a>-<a href="021.html" accesskey="n">Next</a></p>