Here i’ve marked the steps that i followed to share cwhois and how i upload it to sourceforge.
First of all, i prepared the code source of cwhois application, i archived it and i compressed it with bzip2.
Sourceforge provides a file management service to ease the process of uploading files.
The file management service allows upload via web form, WebDAV, SFTP, SCP, and rsync over SSH.
I used a WebDAV linux client named cadaver. You can installed with aptitude
$ sudo aptitude install cadaver
After, i run cadaver like this:
$ cadaver https://frs.sourceforge.net/h/ha/handrix/uploads
Authentication required for SourceForge.net File Release System on server `frs.sourceforge.net’:
dav:/h/ha/handrix/uploads/> put cwhois.tar.bz2
Uploading cwhois.tar.bz2 to `/h/ha/handrix/uploads/cwhois.tar.bz2′:
Progress: [=============================>] 100,0% of 92456 bytes succeeded.
Note that the upload url is in this form https://frs.sourceforge.net/u/us/user/uploads
where ‘u’ is the first occurence in your username, ‘us’ is the first and the second character,
and ‘user’ have also to be remplaced with your username.
So, i put the application.
Well everything seems to be ok, i went to SF.net > Projects > cwhois > Admin > File Releases
and i added a release 0.1, also i added the uploaded File cwhois.tar.bz2 To This Release.
In the next step i configured the project’s Git repository.
$ git init
$ git config –global user.name “MEZGANI ali”
$ git config –global user.email “email@example.com”
$ git add .
$ git commit -u
$ git remote add origin ssh://firstname.lastname@example.org/gitroot/cwhois
$ git config branch.master.remote origin
$ git config branch.master.merge refs/heads/master
$ git push origin master
Once that is done, i was able to browse my newly-committed content via gitweb.
Lastly, for backupping we can use rsync as well as :
$ rsync -av cwhois.git.sourceforge.net::gitroot/cwhois/* cwhois