#!/bin/sh
#
# Copyright (C) 1993 by Oliver Trepte.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose and without fee is hereby granted, provided
# that the above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear in supporting
# documentation.  This software is provided "as is" without express or
# implied warranty.
#
# This shell script creates a file called "compile_time.h" which holds
# a define stating the compilation time. This is used for the -version
# flag.
#

OUTFILE=compile.h
DATE=`date`
USER=`whoami`

echo "/* compile_time.h  This file tells the package when it was compiled */" > $OUTFILE
echo "/* DO NOT EDIT - THIS FILE IS MAINTAINED AUTOMATICALLY              */" >> $OUTFILE
echo "#define COMPILE_TIME \"$DATE\"" >> $OUTFILE
echo "#define COMPILED_BY \"$USER\"" >> $OUTFILE
