1
by luke-jr
Unify tags/branches of modules released together |
1 |
#!/bin/sh
|
2 |
#
|
|
3 |
# pushes @progtitle@ scorefiles up to a webserver using rsync
|
|
4 |
# these variables probably need adaption to your local needs
|
|
5 |
||
6 |
VAR=/home/@prognamebase@/.@prognamebase@/var |
|
7 |
LOCALTARGETBASE=$HOME/WWW/SourceForge/htdocs |
|
8 |
REMOTETARGETBASE=armagetron.sourceforge.net:/home/groups/a/ar/armagetron/htdocs |
|
9 |
LOCALTARGET=$LOCALTARGETBASE/scores/zman |
|
10 |
REMOTETARGET=$REMOTETARGETBASE/scores/zman |
|
11 |
REMOTEUSER=z-man |
|
12 |
||
13 |
test -r $VAR || { echo "$VAR not readable"; exit 1; } |
|
14 |
test -r $LOCALTARGET || { echo "$LOCALTARGET not writable"; exit 1; } |
|
15 |
cp -R $VAR/* $LOCALTARGET |
|
16 |
||
17 |
cd $LOCALTARGET |
|
18 |
||
19 |
rsync -t -r --exclude "*~" --exclude "scorelog*" -e "ssh -x -l $REMOTEUSER" $LOCALTARGET/* $REMOTETARGET |
|
20 |
||
21 |
cd ../..
|
|
22 |
||
23 |
rm -f scores.html |
|
24 |
make scores.html |
|
25 |
||
26 |
rsync -t -e "ssh -x -l $REMOTEUSER" $LOCALTARGETBASE/scores.html $REMOTETARGETBASE |