upload 674 Bytes
Newer Older
Steve Johnson's avatar
Steve Johnson committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
#! /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 $?