home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / netpbma.zip / stamp-date < prev    next >
Text File  |  1993-11-20  |  911b  |  25 lines

  1. #!/bin/sh
  2. #
  3. # Copyright (C) 1993 by Oliver Trepte.
  4. #
  5. # Permission to use, copy, modify, and distribute this software and its
  6. # documentation for any purpose and without fee is hereby granted, provided
  7. # that the above copyright notice appear in all copies and that both that
  8. # copyright notice and this permission notice appear in supporting
  9. # documentation.  This software is provided "as is" without express or
  10. # implied warranty.
  11. #
  12. # This shell script creates a file called "compile_time.h" which holds
  13. # a define stating the compilation time. This is used for the -version
  14. # flag.
  15. #
  16.  
  17. OUTFILE=compile.h
  18. DATE=`date`
  19. USER=`whoami`
  20.  
  21. echo "/* compile_time.h  This file tells the package when it was compiled */" > $OUTFILE
  22. echo "/* DO NOT EDIT - THIS FILE IS MAINTAINED AUTOMATICALLY              */" >> $OUTFILE
  23. echo "#define COMPILE_TIME \"$DATE\"" >> $OUTFILE
  24. echo "#define COMPILED_BY \"$USER\"" >> $OUTFILE
  25.