home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / question / 15917 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.0 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!not-for-mail
  2. From: ren@math.ohio-state.edu (Liming Ren)
  3. Newsgroups: comp.unix.questions
  4. Subject: How to add version id into a program?
  5. Date: 25 Jan 1993 10:24:47 -0500
  6. Organization: Department of Mathematics, The Ohio State University
  7. Lines: 23
  8. Distribution: world
  9. Message-ID: <1k10nvINNsnr@function.mps.ohio-state.edu>
  10. NNTP-Posting-Host: function.mps.ohio-state.edu
  11.  
  12. I don't know what we need to do in C source code to have 
  13. version (unix command) to report version id.
  14.  
  15. I checked  man version: It says 
  16.  
  17. The version command looks for the ASCII string of characters
  18. following the string "@(#)RELEASE ". The string could be any
  19. sequence of printable characters terminated by a NEWLINE  or
  20. NULL.   Thus  if  you  put  this string into your files, the
  21. version command can be used to display the version  of  your
  22.  
  23.  
  24.  
  25. I put  lines such as
  26.  
  27. /*@(#)RELEASE 1.0*/  or
  28.  
  29. #define version_id "@(#)RELEASE 1.0"
  30.  
  31. in my source program. Version does not work with this.
  32.  
  33. Please help!
  34. Many thanks!
  35.