home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 152.lha / IncRev.doc < prev    next >
Text File  |  1988-04-26  |  2KB  |  32 lines

  1.  
  2.                                    IncRev
  3.                             Revision Incrementor
  4.                                by Bryan Ford
  5.  
  6.     IncRev is a very small and simple program I wrote in order to allow me
  7. to automatically increment the revision number of a program every time I
  8. recompiled.  It creates its own object module, Rev.o, which contains a
  9. global symbol called Revision, which is a longword variable.  You can get
  10. access to this variable in C by inserting "extern long Revision;" in your
  11. code.  This variable will always contain the current revision number.
  12.     I defined Revision as a long for two reasons.  First, since AmigaDOS
  13. only does things on longword boundaries anyway, there's no reason not to.
  14. And second, just in case you're recompiling more than 32767 times.
  15.     IncRev takes no parameters.  If Rev.o exists, it increments its
  16. revision number.  If it doesn't it creates it and resets the revision
  17. number.  You'll need to include Rev.o in your linking list and make sure
  18. it's run before you link your program.  If you use makefiles like me, you
  19. can just insert the command before the linking command.
  20.     This program is being distributed as Freeware, which means you can copy
  21. and distribute this program as much as you like, as long as you keep it in
  22. its original form, including this document, and no fee is charged for
  23. copying.  No donation is required, since this is such a small program.  I
  24. may be reached at the address below for comments, questions, and flames.
  25.  
  26.                                     Bryan Ford
  27.                             Snail:  1790 East 1400 North
  28.                                     Logan, UT 84321
  29.                             Phone:  (801)753-1159
  30.                             Bitnet: FATQW@USU
  31.  
  32.