sage no longer needed for sync
[lectures/latex.git] / posic / sync.sh
1 RSYNC="rsync -avz -u"
2
3 TRG=hackdaworld.org:latex/posic
4
5 if [ "$1" = "push" ]; then
6
7         $RSYNC -e "ssh" ./img/ $TRG/img/
8         $RSYNC -e "ssh" ./figs/ $TRG/figs/
9         $RSYNC -e "ssh" ./plot/ $TRG/plot/
10
11 fi
12
13 if [ "$1" = "pull" ]; then
14
15         $RSYNC -e "ssh" $SRC/img/ ./img/
16         $RSYNC -e "ssh" $SRC/figs/ ./figs/
17         $RSYNC -e "ssh" $SRC/plot/ ./plot/
18
19 fi
20
21 echo "done"
22