#! /bin/sh if [ ! -f ../mse/tools/upload_config ]; then echo " - Please clone mse repository into sibling directory of $PWD" echo " - Then edit mse/tools/upload_config for your site settings" exit 0 fi . ../mse/tools/upload_config $1 mse/qrc echo " " echo " * Uploading ${PWD##*/} repository contents to: $REPO_HOST:$REPO_DEST" echo " " rsync --recursive html/* $REPO_USERHOST$REPO_SEP$REPO_DEST rsync --recursive \ --exclude '*~*' \ --exclude '*/*.log' \ --exclude '*/agents' \ --exclude '*/cookies' \ --exclude '*/tokens' \ --exclude '*/log' \ php $REPO_USERHOST$REPO_SEP$REPO_DEST check_rcode $?