How to upload my project ? To upload your project..
For your project sources and website hosted on savannah, you must use CVS. rsync and scp are only acceptable for the download area.
***** Upload the project sources
1) You should go in the local dir where you want to put your local CVS tree.
For example:
cd /opt
2) You should follow instructions in your CVS project page on savannah (as http://savannah.gnu.org/cvs/?group_id=11 : savannah CVS page ).
- If you have SSH version two, add Protocol 1 in the ~/.ssh/config file, even if you think that your SSH will switch to protocol 1 automatically (alternatively, if you use ssh2 on others servers adding Protocol 1,2 in the ~/.ssh/config should work)
This could be basicaly done with:
echo "Protocol 1" > ~/.ssh/config
go to http://savannah.gnu.org/account/editsshkeys.php : Change Authorized Keys page (logged in)
- Your savannah password is useless for cvs. You have to register a CVS/SSH Shared key in the Account Maintenance page for the machine from which you run cv To generate a proper key, with a passphrase, do:
ssh-keygen
- You to download the CVS tree structure, do (Substitute developername with the proper value):
export CVS_RSH=ssh
cvs -z3 -ddevelopername@subversions.gnu.org:/cvsroot/myproject/ co myproject
3) Then, in the dir /opt/myproject, you should copy all the files you want to insert in the CVS tree.
4) Once you have localy set your project tree, you can upload it. To upload a file and a directory :
cd /opt/myproject
cvs add myfile
cvs add mydir
(or cvs add myfile mydir)
cvs commit
Read http://www.freenix.org/unix/linux/HOWTO-vo/CVS-RCS-HOWTO.html
Execute man cvs to get more informations.
Also, you could read the http://www.cvshome.org/docs/manual/cvs_17.html#SEC153 Quick reference to CVS.
***** Upload the website
It works in the same way.
1) You should go in the local dir where you want to put your local WWW CVS tree.
For example:
cd /opt/www
2) You should follow instructions in your CVS project page on savannah (as http://savannah.gnu.org/cvs/?group_id=11 : savannah CVS page).
- If you have SSH version two, add Protocol 1 in the ~/.ssh/config file, even if you think that your SSH will switch to protocol 1 automatically (alternatively, if you use ssh2 on others servers adding Protocol 1,2 in the ~/.ssh/config should work)
This could be basicaly done with:
echo "Protocol 1" > ~/.ssh/config
go to http://savannah.gnu.org/account/editsshkeys.php : Change Authorized Keys page (logged in)
- Your savannah password is useless for cvs. You have to register a CVS/SSH Shared key in the Account Maintenance page for the machine from which you run cv To generate a proper key, with a passphrase, do:
ssh-keygen
- You to download the CVS tree structure, do (Substitute developername with the proper value):
export CVS_RSH=ssh
cvs -z3 -ddevelopername@subversions.gnu.org:/webcvs/ co non-gnu/myproject/
3) Then, in the dir /opt/www/non-gnu/myproject, you should copy all the files you want to insert in the CVS tree.
4) Once you have localy set your project tree, you can upload it. To upload a file and a directory :
cd /opt/www/non-gnu/myproject
cvs add myfile
cvs add mydir
(or cvs add myfile mydir)
cvs commit
5) To use a symlinks, you must add a file named .symlinks in each directory where you want to make symbolic links. Each line of the file list a real file name followed by the name of the symbolic link. The symbolic links are built once a day.
or example, to make a ln -s src/pouf.css style.css do:
echo "src/pouf.css style.css" >> .symlinks
****** Upload file in the download area for non-gnu projects
( http://freesoftware.fsf.org/download/myproject/ )
You should use scp or rsync.
So you should have a registered ssh key (see previous sections)
- Go in the dir when files to upload are:
cd /opt/myproject/download
- To use scp:
scp myfile address@hidden:/upload/myproject
Execute man scp or man rsync to get more informations.
Others questions...
texinfo version of the Savannah FAQ
|