Loading...
 

HowToCvsTarball

Here is how I provide tarballs of the CVS on tikiwiki.org, so other people can do it as well.

lastcvs.sh

That simple shell script updates a local cvs dir and logs the operation in a file, it takes a valid tag as argument. Be careful there is no check for anything it just does what it says :

Copy to clipboard
#!/bin/sh OLDIR=`pwd` LOGFILE="/home/mose/var/tikicvs/tails/cvslog_$1" if [ ! -f $LOGFILE ]; then touch $LOGFILE fi date +%s >> $LOGFILE cd /home/mose/var/lastiki_$1 cvs -q update -dP -r $1 >> $LOGFILE cd ../ rm -f lastiki_$1.tar.bz2_previous mv lastiki_$1.tar.bz2 lastiki_$1.tar.bz2_previous tar -cjf lastiki_$1.tar.bz2 lastiki_$1 cd $OLDIR
contrab -e

As a user, on my server, I included my ssh public key on sourceforge, so I have no password to type and then I can automate that cvs update process.

Copy to clipboard
crontab -e 02 1,9,17 * * * /home/mose/bin/lastcvs.sh HEAD 02 2,10,18 * * * /home/mose/bin/lastcvs.sh release_eta_carinea_rc1
reachable on the web

I have a symbolic link setup to each generated tarbal in the web directory, so there is no need for other manipulation. You can provide a view on your logs or something like that, or indication of the generation time in adding it in the name with the shell script.

just hack it and contribute back if possible !

mose

Created by: Last Modification: Saturday 11 October 2003 19:16:03 GMT-0000 by Mose
List Slides