#!/bin/sh #rsync -a --delete --exclude=.svn tug.org::tldevsrc/Build/source . PWD=`pwd` REV=70573 if [[ ! -d source ]];then svn co svn://tug.org/texlive/trunk/Build/source@${REV} else cd source svn update -r ${REV} if [[ $? -ne 0 ]];then echo "Please remove or rename the source/ directory" echo "and re-run this command." exit 1 fi svn revert --recursive . svn status --no-ignore | grep '^[?I]' | sed "s/^[?I] //" \ | xargs -I{} rm -rf "{}" fi cd ${PWD}