home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!not-for-mail
- From: ren@math.ohio-state.edu (Liming Ren)
- Newsgroups: comp.unix.questions
- Subject: How to add version id into a program?
- Date: 25 Jan 1993 10:24:47 -0500
- Organization: Department of Mathematics, The Ohio State University
- Lines: 23
- Distribution: world
- Message-ID: <1k10nvINNsnr@function.mps.ohio-state.edu>
- NNTP-Posting-Host: function.mps.ohio-state.edu
-
- I don't know what we need to do in C source code to have
- version (unix command) to report version id.
-
- I checked man version: It says
-
- The version command looks for the ASCII string of characters
- following the string "@(#)RELEASE ". The string could be any
- sequence of printable characters terminated by a NEWLINE or
- NULL. Thus if you put this string into your files, the
- version command can be used to display the version of your
-
-
-
- I put lines such as
-
- /*@(#)RELEASE 1.0*/ or
-
- #define version_id "@(#)RELEASE 1.0"
-
- in my source program. Version does not work with this.
-
- Please help!
- Many thanks!
-