X-Git-Url: https://hackdaworld.org/gitweb/?p=lectures%2Flatex.git;a=blobdiff_plain;f=posic%2Fsync.sh;fp=posic%2Fsync.sh;h=c75a64d818682993176268f62aa4d2037405ea33;hp=0000000000000000000000000000000000000000;hb=41afe4ad5745da4e247e67c25ae99f6584cc24c2;hpb=0d2f8502c4f4578851e7d86a3dc094060834bf76 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" +