Discussion:
[Xmltv-devel] Supplement upload script
Mattias Holmlund
2012-06-14 17:05:32 UTC
Permalink
Since we are discussing the supplement setup, I might as well post the
script that does the upload. It is very straight-forward:

date > $LOG
cd $CHECKOUT
make clean >> $LOG 2>&1
cvs -q update -d -P >> $LOG
perl Makefile.PL --yes >> $LOG 2>&1
make >> $LOG 2>&1

# rsync the files generated by make to a staging area. The -c switch
only copies
# files if their content differs. This means that if the file generated
by make is identical to
# the file it generated the last time, it will retain its old timestamp
all the way to the
# supplement server.
rsync -r -c blib/share/* $STAGING/

rsync -a $STAGING/* $SUPPLEMENTHOST1
rsync -a $STAGING/* $SUPPLEMENTHOST2

/Mattias

Loading...