#!/bin/csh
#
# This script will make a directory called include,
# copy all files needed as denoted by files.needed, and
# will tar them up for shipping.

# First create the include directory.  If it exists, then don't
# overwrite it,  let the person running the script decide what to
# do.
# 
if ( -d include ) then
  echo Directory exists. No action taken.
  exit 1
else
  mkdir include
endif

# Copy the files listed in files.needed to this new include directory
#
cp `cat files.needed` include

# Now tar the directory up and clean up after myself
#
tar cvf include.tar include
rm -rf include

echo -n "Script finished at "
date
# End.
