#!/bin/sh
#---------#---------#---------#---------#---------#---------#---------#---------
#
# title
#   copy files in a docroot using cp
# author
#   idc@planetlarg.net 01 jan 01
# description
#   copy the website files from the development directory to the live directory 
#   (the parent of the current directory).
# modifications
#
#---------#---------#---------#---------#---------#---------#---------#---------
# setup
#
# main
#
# change to the parent directory where the live files are
# ---------------------------------
cd ..

# Copy the pages
# ---------------------------------
echo "copying the HTML pages..."
cp e_*.html       archive/
cp index.html     archive/

# copy the forms for printing
# ---------------------------------
echo "copying the HTML forms..."
cp req_*.html     archive/

# copy other subsidiary files
# ---------------------------------
echo "copying the subsidiary files..."
cp milling1.pdf   archive/

# copy the pictures
# ---------------------------------
echo "copying the pictures..."
cd pictures
cp pic_*.jpg          ../archive/pictures/
cd ..
cp *.gif              archive/

# copy the cgi files
# ---------------------------------
echo "copying the cgi files..."
cp /www/local_pages/cgi-bin/douglass/formmail/*.pl archive/formmail/

# secure the new files
# ---------------------------------
cd archive
chmod -R 775 *


echo "Done. \n\n"
#---------#---------#---------#---------#---------#---------#---------#---------
