<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Add the new package to CVS</title><meta name="generator" content="DocBook XSL Stylesheets V1.64.1"><link rel="home" href="index.html" title="OpenACS Core Documentation"><link rel="up" href="tutorial-advanced.html" title="Chapter�10.�Advanced Topics"><link rel="previous" href="tutorial-specs.html" title="Write the Requirements and Design Specs"><link rel="next" href="tutorial-comments.html" title="Adding Comments"><link rel="stylesheet" href="openacs.css" type="text/css"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><a href="http://openacs.org"><img src="/doc/images/alex.jpg" border="0" alt="Alex logo"></a><table width="100%" summary="Navigation header" border="0"><tr><td width="20%" align="left"><a accesskey="p" href="tutorial-specs.html">Prev</a> </td><th width="60%" align="center">Chapter�10.�Advanced Topics</th><td width="20%" align="right"> <a accesskey="n" href="tutorial-comments.html">Next</a></td></tr></table><hr></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="tutorial-cvs"></a>Add the new package to CVS</h2></div></div><div></div></div><p>Before you do any more work, make sure that your work is protected by putting it all into cvs. The <tt class="computeroutput">cvs add</tt> command is not recursive, so you'll have to traverse the directory tree manually and add as you go. (<a href="http://www.piskorski.com/docs/cvs-conventions.html" target="_top">More on CVS</a>)</p><pre class="screen">[service0 xml]$ <b class="userinput"><tt>cd ..</tt></b> [service0 doc]$ <b class="userinput"><tt>cd ..</tt></b> [service0 www]$ <b class="userinput"><tt>cd ..</tt></b> [service0 myfirstpackage]$ <b class="userinput"><tt>cd ..</tt></b> [service0 packages]$ <b class="userinput"><tt>cvs add myfirstpackage/</tt></b> Directory /cvsroot/<span class="replaceable"><span class="replaceable">service0</span></span>/packages/myfirstpackage added to the repository [service0 packages]$ <b class="userinput"><tt>cd myfirstpackage/</tt></b> [service0 myfirstpackage]$ <b class="userinput"><tt>cvs add www</tt></b> Directory /cvsroot/<span class="replaceable"><span class="replaceable">service0</span></span>/packages/myfirstpackage/www added to the repository [service0 myfirstpackage]$ <b class="userinput"><tt>cd www</tt></b> [service0 www]$ <b class="userinput"><tt>cvs add doc</tt></b> Directory /cvsroot/<span class="replaceable"><span class="replaceable">service0</span></span>/packages/myfirstpackage/www/doc added to the repository [service0 www]$ <b class="userinput"><tt>cd doc</tt></b> [service0 doc]$ <b class="userinput"><tt>cvs add *</tt></b> cvs add: cannot add special file `CVS'; skipping cvs add: scheduling file `admin-guide.html' for addition cvs add: scheduling file `bi01.html' for addition cvs add: scheduling file `data-model.dia' for addition cvs add: scheduling file `data-model.png' for addition cvs add: scheduling file `design-config.html' for addition cvs add: scheduling file `design-data-model.html' for addition cvs add: scheduling file `design-future.html' for addition cvs add: scheduling file `design-ui.html' for addition cvs add: scheduling file `filename.html' for addition cvs add: scheduling file `index.html' for addition cvs add: scheduling file `page-map.dia' for addition cvs add: scheduling file `page-map.png' for addition cvs add: scheduling file `requirements-cases.html' for addition cvs add: scheduling file `requirements-introduction.html' for addition cvs add: scheduling file `requirements-overview.html' for addition cvs add: scheduling file `requirements.html' for addition cvs add: scheduling file `sample-data.html' for addition cvs add: scheduling file `sample.png' for addition cvs add: scheduling file `user-guide.html' for addition cvs add: scheduling file `user-interface.dia' for addition cvs add: scheduling file `user-interface.png' for addition Directory /cvsroot/<span class="replaceable"><span class="replaceable">service0</span></span>/packages/myfirstpackage/www/doc/xml added to the repository cvs add: use 'cvs commit' to add these files permanently [service0 doc]$ <b class="userinput"><tt>cd xml</tt></b> [service0 xml]$ <b class="userinput"><tt>cvs add Makefile index.xml</tt></b> cvs add: scheduling file `Makefile' for addition cvs add: scheduling file `index.xml' for addition cvs add: use 'cvs commit' to add these files permanently [service0 xml]$<b class="userinput"><tt> cd ../../..</tt></b> [service0 myfirstpackage]$ <b class="userinput"><tt>cvs commit -m "new package"</tt></b> cvs commit: Examining . cvs commit: Examining www cvs commit: Examining www/doc cvs commit: Examining www/doc/xml RCS file: /cvsroot/<span class="replaceable"><span class="replaceable">service0</span></span>/packages/myfirstpackage/www/doc/admin-guide.html,v done Checking in www/doc/admin-guide.html; /cvsroot/<span class="replaceable"><span class="replaceable">service0</span></span>/packages/myfirstpackage/www/doc/admin-guide.html,v <-- admin-guide.html initial revision: 1.1 done <span class="emphasis"><em>(many lines omitted)</em></span> [service0 myfirstpackage]$</pre><div class="figure"><a name="id2533654"></a><p class="title"><b>Figure�10.1.�Upgrading a local CVS repository</b></p><div class="mediaobject" align="center"><img src="images/development-with-cvs.png" align="middle" alt="Upgrading a local CVS repository"></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="tutorial-specs.html">Prev</a> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right"> <a accesskey="n" href="tutorial-comments.html">Next</a></td></tr><tr><td width="40%" align="left">Write the Requirements and Design Specs </td><td width="20%" align="center"><a accesskey="u" href="tutorial-advanced.html">Up</a></td><td width="40%" align="right"> Adding Comments</td></tr></table><hr><address><a href="mailto:docs@openacs.org">docs@openacs.org</a></address></div><a name="comments"></a><center><a href="http://openacs.org/doc/tutorial-cvs.html#comments">View comments on this page at openacs.org</a></center></body></html>