#!/bin/csh
# This script creates a template for a WWW home page
# It is tailored to the Plant Science Department,
# but could easily be adapted for others.

# Make sure that there isn't a public_html directory
# before starting

if (-e $home/public_html) then
   echo public_html already exists, so you may already have
   echo a home page. You must delete or rename public_html
   echo to run this script.
else
   
   # Create public_html and copy template file
   mkdir $home/public_html
   chmod 755 public_html
   cd public_html
   sed -e "s/USERID/`whoami`/g" $BIRCH/admin/template.html > index.html
   cp $BIRCH/admin/sample.asc .
   chmod 644 index.html sample.asc
   echo Your home page is now set up. 
   echo 'What to do next:'
   echo '1) Learn how to put things into your home page '
   echo see 'Tools for Web Spinners -->'
   echo '         HTML: An Introduction'
   echo '    in the U. of M. Web pages'
   echo '2) Edit public_html/index.htmlto put information into it.'
   echo '3) When you have a Web page worth looking at, send me a'
   echo '   message at frist@cc.umanitoba.ca'
   echo "   and I\'ll add your page to the Plant Science hierarchy"
endif
