#!/bin/csh -f #-------------------------------------------------- # script: makejohn # author: john@december.com # date: 07 July 1996 # version: 1.0 # purpose: demonstrate file generation in HTML # usage: makejohn filename #-------------------------------------------------- # Echo the input to announce the script is running echo "makejohn on" $* # This is where I'll store the generated file set GENLOC="../gen" # This is where I keep the source files set SRCLOC="../src" # I start off with the head cat $SRCLOC/johnhead.html > $GENLOC/$1 # I add the contents right after the head cat $SRCLOC/$1 >> $GENLOC/$1 # I now add the foot cat $SRCLOC/johnfoot.html >> $GENLOC/$1 # I remind myself where the generated output is. echo "generated in $GENLOC/"$1