if [ $# == 0 ]
then
	echo "Usage: push {filename} [more filenames...]"
	exit 1
fi


# If arg is ucon.html, change destination name; else just concatenate
# the list of names into one string and send them in one scp command...
#

if [ "$*" = "ucon.html" ]
then
	echo "scp $1 root@umonfw.com:/var/www/html/ucon/index.html"
	scp $1 root@umonfw.com:/var/www/html/ucon/index.html
	exit
fi

if [ "$*" = "joinlist.html" ]
then
	echo "scp $1 root@umonfw.com:/var/www/html/ucon/joinlist.html"
	scp $1 root@umonfw.com:/var/www/html/ucon/joinlist.html
	exit
fi

if [ "$*" = "ucon_faq.html" ]
then
	echo "scp $1 root@umonfw.com:/var/www/html/ucon/ucon_faq.html"
	scp $1 root@umonfw.com:/var/www/html/ucon/ucon_faq.html
	echo "scp $1 root@umonfw.com:/var/www/html/ucon/htmlhelp/ucon_faq.html"
	scp $1 root@umonfw.com:/var/www/html/ucon/htmlhelp/ucon_faq.html
	exit
fi

export scplist=
for arg in $*
do
	export scplist="$scplist  $arg"
done

echo "scp $scplist root@umonfw.com:/var/www/html/ucon/htmlhelp"
scp $scplist root@umonfw.com:/var/www/html/ucon/htmlhelp
