#!/bin/sh

# sitebuild-update
# by Gav Ford
# revford@blueyonder.co.uk
# http://revford.pwp.blueyonder.co.uk
# 2008 early, updated 2009-02-02
# assemble the blog and updates page, then upload them


# 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-rss-blue
/home/gav/bin/sitebuild-update-rss-revford
/home/gav/bin/sitebuild-update-index


echo "Updated." 
echo ""


# upload the news pages and RSS to http://revford.co.uk
ncftpput -f ~/.ncftp/login-revford.cfg public_html /home/gav/web/revford-site/index.html
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/updates*.html


# upload the news pages to http://revford.pwp.blueyonder.co.uk
# ncftpput -f ~/.ncftp/login-by.cfg . /home/gav/web/blue-site/index.html
# ncftpput -f ~/.ncftp/login-by.cfg . /home/gav/web/blue-site/updates*.html

# 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 ""

