#!/bin/bash
# Upload the contents of output directory to S3 bucket (www.bernatchez.net at this writing)
# bash trick to obtain a clean absolute path to this script.
pushd `dirname $0` >/dev/null
SCRIPTPATH=`pwd -P`
popd >/dev/null
SCRIPTDIRNAME=`basename ${SCRIPTPATH}`
MYPROGNAME=`basename $0`
BASEDIR=${SCRIPTPATH}
MYOUTPUT=${BASEDIR}/output
MYBUCKET="www.bernatchez.net"
pushd ${MYOUTPUT} >/dev/null
ls -l
echo 's3cmd sync * s3://${MYBUCKET}/'
s3cmd sync * s3://${MYBUCKET}/
popd >/dev/null

