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 / VMS / stamp_date.com < prev   
Text File  |  1996-11-18  |  1KB  |  26 lines

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