How to manage your website at SourceForge with CVS

Author: Nicolas E. Rabenau <nerab@gmx.at>
  1. Setup a local directory structure like that:
    	<project-name>-htdocs/
    	|
    	+- htdocs/
    	+- <other stuff>

    The htdocs folder is the interesting one, it will be shown as your site's root directory.

  2. Check in <project-name>-htdocs into SourceForge's CVS:
    	cd <project-name>-htdocs/
    	export CVS_RSH=ssh
    	cvs -d:ext:<developer-name>@cvs.<project-name>.sourceforge.net:/cvsroot/<project-name> import <project-name>-htdocs <developer-name> start

    You can verify that by looking at the CVS repository with viewcvs: Point your browser at

    		http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/<project-name>/
    

    There should be a folder named <project-name>-htdocs with the contents of your web site.

  3. Login to SourceForge's shell server and switch to your projects web directory:
    	ssh <developer-name>@<project-name>.sf.net
    	cd /home/groups/&/&L/<project-name>

    where & is the first character of <project-name> and &L are the first two characters of <project-name>.

  4. Checkout the htdocs folder (which is a copy of your web site):
    	cvs -z3 -d:pserver:anonymous@cvs.<project-name>.sourceforge.net:/cvsroot/<project-name> co <project-name>-htdocs/htdocs

    There will be a new folder named <project-name>-htdocs which contains the htdocs folder (the only interesting one). Move the contents of it to the htdocs folder:

    	mv <project-name>-htdocs/* .

    Now the htdocs folder contains the a version of your web site which is under CVS control.

  5. Whenever you made changes to your web site, simply check it in to CVS and run
    	cvs update

    in the htdocs directory.


You can personalize this list by entering your project's settings:
Project Name
Developer's Name
If you have any comments or ways to do above steps in a simpler way, feel free to mail me.