#!/bin/csh
#
# Runs make putting all output into a logfile.
# Logfile begins and ends with a time stamp, and the name of
# the logfile reflects the start time of the make.  The name
# of the logfile begins with `_' so it shows up first with ls.
#
set logfile = _`date +%h%d-%H:%M`		# e.g. _Jun08-08:00

setenv PATH /usr/bin:$PATH

echo PATH is $PATH

if ( ! $?HOST ) set HOST = ""

echo `date`  ====  Log of\: make $* >& $logfile
echo Original $HOST disk space\:    >>& $logfile
df .                                >>& $logfile
make $*                             >>& $logfile
echo `date`                         >>& $logfile
echo Final disk space\:             >>& $logfile
df .                                >>& $logfile
