home *** CD-ROM | disk | FTP | other *** search
-
- Bump v1.0
-
- --> A tool to keep your sources up-to-date <--
-
- KICKSTART 2.0 ONLY
-
- by
-
- Jan van den Baard
-
- This program is
- FREEWARE
-
- and remains (c) Copyright 1992 Jaba Development
-
- The author cannot be held liable for the suitability or accuracy of this
- program. Any damage directly or indirectly caused by the use or misuse of
- of this program is the sole responsibility of the user her/him self.
-
- Bump is a little utility to make it easy to keep the version string in your
- sources up-to-date. It's ment to be called from the cli or a makefile. Here's
- how to call it:
-
- Format: Bump <Name> [INCVER] [INCREV] [SETVER = num] [SETREV = num]
- [QUIET] [ONLYDATE]
-
- Template: Name/A,INCVER/S,INCREV/S,SETVER/K/N,SETREV/K/N,QUIET/S,
- ONLYDATE/S
-
- With:
- Name = The name of the source code which contains the
- version string that must be updated.
-
- INCVER = Specifying this argument causes the program to
- increase the version number by one.
-
- INCREV = Specifying this argument causes the program to
- increase the revision number by one. This is the
- default setting.
-
- SETVER = With this argument you can set the version number to
- what you want.
-
- SETREV = With this argument you can set the revision number
- to what you want.
-
- QUIET = Specifying this will prevent Bump from printing the
- progress information on the console.
-
- ONLYDATE = This specifies that bump must only re-set the date
- in the version string.
-
- Purpose: To update the version string in a source code file.
-
- Specification:
- BUMP reads the source code file into memory and searches for the string
- "$VER: ". This is identifies the version string. If this is found the
- program looks through the version string to find the version and
- revision numbers. Then it updates these numbers and writes the file
- back to the disk. NOTE: The version string must be formed as described
- in the "User Interface Style Guide" which is as follows:
-
- $VER: <name> <version>.<revision> (<d>.<m>.<y>)
-
- <name> The name of the program.
- <version> Major version number.
- <revision> Minor revision number.
- <d> Day in month created (number)
- <m> Month created (number)
- <y> Year created (number)
-
- The program counts the '.', '(' and ')' characters that occur in the
- version string and if it doesn't check out the program exits. When you
- have an assembler program called "blurp" created on friday the seventh
- of february 1992 and it's version is 37.295 the string should be coded
- as follows:
-
- version_string:
- dc.b '$VER: BLURP 37.295 (7.2.92)',0
-
- When the next day you add a feature you should call Bump the following
- way before assembling the source:
-
- Bump Blurp.s INCREV
-
- After this the version string has been changed to the following:
-
- version_string:
- dc.b '$VER: BLURP 37.296 (8.2.92)',0
-
- The same thing can be done with C sources.
-
- UBYTE *version_string = "$VER: BLURP 37.295 (7.2.92)";
-
- After you call Bump Blurp.c INCREV the line with the version string reads
-
- UBYTE *version_string = "$VER: BLURP 37.296 (8.2.92)";
-
- As you can see BUMP automatically changes the date to the system time so
- be sure that your clock is set correctly. BUMP is pure an can be made
- resident.
-
- Bug reports, suggestions, postcards, flames, criticism, contributions,
- ideas, gifts, etc., etc., etc......... to:
-
- Jan van den Baard
- Bakkerstraat 176
- 3082 HE, Rotterdam
- The Netherlands
-
- FIDO: 2:500/29 (Jan van.den.Baard)
-