#!/bin/sh

# sitebuild-total
# by Gav Ford
# revford@blueyonder.co.uk
# http://revford.pwp.blueyonder.co.uk
# 2008 early, updated 2009-02-02
# assemble the whole site and upload it.


# when the new site goes live, disable the news pages to blueyonder section
# and enable the upload to revford section


/home/gav/bin/sitebuild-update-html
/home/gav/bin/sitebuild-update-topics
/home/gav/bin/sitebuild-update-index
/home/gav/bin/sitebuild-update-rss-revford
/home/gav/bin/sitebuild-update-rss-blue
/home/gav/bin/sitebuild-contfiles


echo "Updated."
echo ""



# upload complete site to http://revford.co.uk
ncftpput -f ~/.ncftp/login-revford.cfg public_html /home/gav/web/revford-site/revford-rss.xml
ncftpput -f ~/.ncftp/login-revford.cfg public_html /home/gav/web/revford-site/*.html
ncftpput -f ~/.ncftp/login-revford.cfg public_html/css /home/gav/web/revford-site/css/*
ncftpput -f ~/.ncftp/login-revford.cfg public_html/scripts /home/gav/web/revford-site/scripts/*
ncftpput -f ~/.ncftp/login-revford.cfg public_html/images /home/gav/web/revford-site/images/*
ncftpput -f ~/.ncftp/login-revford.cfg public_html/spells /home/gav/web/revford-site/spells/*


# upload complete site to http://revford.pwp.blueyonder.co.uk
# ncftpput -f ~/.ncftp/login-by.cfg . /home/gav/web/blue-site/*.html
# ncftpput -f ~/.ncftp/login-by.cfg css /home/gav/web/blue-site/css/*
# ncftpput -f ~/.ncftp/login-by.cfg scripts /home/gav/web/blue-site/scripts/*
# ncftpput -f ~/.ncftp/login-by.cfg images /home/gav/web/blue-site/images/*

# upload the RSS to the http://revford.pwp.blueyonder.co.uk
ncftpput -f ~/.ncftp/login-by.cfg . /home/gav/web/blue-site/revford-rss.xml


echo "Uploaded."
echo ""

