home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / NETWORK / netpbm_src.lzh / NETPBM / stamp_date.amiga < prev    next >
Text File  |  1996-11-18  |  1KB  |  31 lines

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