From: hackbard Date: Sat, 23 Feb 2008 18:03:25 +0000 (+0100) Subject: added sync script X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9a34a44287a6e621f2a026dc876a40ff22ccfaf;p=lectures%2Flatex.git added sync script --- diff --git a/posic/sync.sh b/posic/sync.sh new file mode 100755 index 0000000..c75a64d --- /dev/null +++ b/posic/sync.sh @@ -0,0 +1,20 @@ +RSYNC="rsync -avz -u" + +if [ "`hostname`" != "sage" ]; then + SRC="sage.physik.uni-augsburg.de:projects/latex/posic" +fi + +$RSYNC -e "ssh -p 3389" $SRC/img/ ./img/ +$RSYNC -e "ssh -p 3389" $SRC/figs/ ./figs/ + +$RSYNC -e "ssh -p 3389" $SRC/talks/*.pdf ./talks/ + +if [ "$2" = "r" ]; then + + $RSYNC -e "ssh -p 3389" ./img/ $SRC/img/ + $RSYNC -e "ssh -p 3389" ./figs/ $SRC/figs/ + +fi + +echo "done" +