#!/bin/csh -f # make_error_loading_slide_page # ------------------------------------------------------------------------- # Shell script to create an HTML page to report an error when loading a # slide. # ------------------------------------------------------------------------- # Revision History: # $Log$ # ------------------------------------------------------------------------- # Collect command line options while ($#argv > 0) if ("$1" == "-h" || "$1" == "--help") then echo "Usage: $0:t [options] > error.htm" echo "Options:" echo " -h = Show this help text" echo " --help = Show this help text" exit 1 else if ("-" == "`echo $1:q | cut -c 1`") then echo "Error: Invalid option: $1:q" $0 --help exit 1 else # Not a recognized option. Assume it's the first argument break endif end # No arguments defined, so allow none if ($#argv > 0) then $0 --help exit 1 endif # Echo the following lines while expanding dollar sign vars # ?? Add below: cat < EOF make_error_loading_slide_div # Echo the following lines w/o expanding dollar sign vars, or anything cat <<"EOF" "EOF"