Merge branch 'master' of hackdaworld.org:/chroot/git/lectures/latex
[lectures/latex.git] / posic / sync.sh
1 RSYNC="rsync -avz -u"
2
3 if [ "`hostname`" != "sage" ]; then
4         SRC="sage.physik.uni-augsburg.de:projects/latex/posic"
5 fi
6
7 $RSYNC -e "ssh -p 3389" $SRC/img/ ./img/
8 $RSYNC -e "ssh -p 3389" $SRC/figs/ ./figs/
9 $RSYNC -e "ssh -p 3389" $SRC/plot/ ./plot/
10
11 $RSYNC -e "ssh -p 3389" $SRC/talks/*.pdf ./talks/
12
13 if [ "$2" = "r" ]; then
14
15         $RSYNC -e "ssh -p 3389" ./img/ $SRC/img/
16         $RSYNC -e "ssh -p 3389" ./figs/ $SRC/figs/
17
18 fi
19
20 echo "done"
21