Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
#!/bin/sh # # update -- update my home machine files # [ -n "$echo" ] && set -x USAGE='update' case "$1" in -*) echo "$USAGE" >&2 exit 2 ;; *) ;; esac STATUS=0 cd $HOME || exit 1 cvsupdate || STATUS=1 if test -d include then cd include || exit 1 make -s all fi cd $HOME get diary .plan .addressbook || STATUS=1 cd Mail && { get -f ; rm -f JUNKEMAIL Spam Unsure; } cd $HOME # excluding from the list as too dangerous: bat bin emacs pictures src temp # as not needed and slow: Mail-OLD thesis workshops for d in classes committees eclipse/workspace etc funding jml-releases Library papers posters published research students talks tech-reports WWW do cd $d || { STATUS=1; continue; } get -f || STATUS=1 cd $HOME done cd $HOME/temp for d in travel reading refereeing editing do cd $d || { STATUS=1; continue; } get -f || STATUS=1 cd .. done echo "updating $HOME/larch-research/master from /home/larch/research/master on larch.cs.iastate.edu" cd $HOME/larch-research/master && rsync -S --rsync-path=/usr/bin/rsync -aup --delete 'larch.cs.iastate.edu:/home/larch/research/master/*' . || STATUS=1 exit $STATUS