home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 3
/
goldfish_volume_3.bin
/
files
/
dev
/
misc
/
makeversion
/
makeversion.doc
< prev
next >
Wrap
Text File
|
1994-10-15
|
5KB
|
144 lines
MAKEVERSION
written by
Ben Hutchings
and released as
version 1.0
in
September 1994
NOTE:
This program is for OS 2.0 and above, only.
LEGAL
The contents of this package are the files:
MakeVersion, MakeVersion.doc, MakeVersion.doc
These files are copyright (c) Ben Hutchings 1994, but they
may be freely distributed provided
(i) no charge is made for them above the costs of
duplication, distribution and the media used,
(ii) all the listed files are kept together, and
(iii) the files are unaltered.
The exception to (iii) is that the files may be distributed
in a compressed form as long as the original files can be
retrieved from this form unchanged.
Software released under these conditions is often known as
Freeware.
I reject any responsibility for any undesirable consequences
whatever of the use of this software. This includes, but is
not limited to, secondary consequences, personal injuries or
other kinds of side effects.
INTRODUCTION
MakeVersion is a simple program for creating program version
numbers. I use it to embed version numbers in most of my
publicly-released programs. It creates linkable object files
which can be used by any standard Amiga linker when linking
the program and is particularly suitable for use in Make
files (or Lmk or DMake files).
INSTALLATION
It is best to copy the program onto your hard disk or
compiler boot disk before using it.
· Boot from your normal compiler disk (this should be a COPY
of the original disk) or hard disk.
· Open a Shell/CLI.
· Enter 'Resident C:Copy pure' (this may cause an error, but
that doesn't matter - unless it says 'object not found' in
which case sorry, you're a bit stuck!).
· Insert the disk this text is on.
· Change the current directory to the directory this text is
in - you will have to type something like
'CD DF0:MakeVersion'.
· If you have two floppy drives or a hard drive, then enter
'Copy MakeVersion C:'.
· If you have only one drive, then enter
'Copy MakeVersion RAM:', then 'Copy RAM:MakeVersion C:',
then 'Delete RAM:MakeVersion'.
· Enter 'EndCLI' to close the Shell/CLI.
HOW TO USE THE PROGRAM
To create the first version file (1.0) for a program in
development, you type the command:
MakeVersion <prog-name>
A file called <prog-name>_ver will be created containing
the text "1.0". Another file called <prog-name>_ver.o will
contain the text "$VER: <prog-name> 1.0 (<date>)" as a code
hunk. You should then include this file in your links, and
if you use Make or a similar utility you should edit your
Make-file to include the MakeVersion command immediately
before each link. This will ensure that the date is always
correct.
To update the version files to the next revision (e.g. from
"1.0" to "1.1" or from "1.23" to "1.24") you should use the
command:
MakeVersion <prog-name> next
To make a major version change, simply use the command:
Echo <version> ><prog-name>_ver
For example, to change the version of MyProg to 2.0, type:
Echo 2.0 >MyProg_ver
Then just run MakeVersion as normal or (if you use a utility
such as Make, let that run it automatically before the next
link).
Alternatively, if the next revision of the program will be a
major version change, use:
Echo <version> ><prog-name>_ver_next
The version number you give will be used the next time you
request a new revision (with the NEXT keyword - see above).
FORMAL REFERENCE
Format: MAKEVERSION [PROGRAM] <name> [NEXT]
Template: PROGRAM/A,NEXT/S
Purpose: To create or update a version string in a linkable
object file.
Specification:
MakeVersion will read any existing version file, named
"<name>_ver" or, if one does not exist, create one contain-
ing the number "1.0", and add the current date to the
version number in Commodore's standard version date format
to make a version string. The version string, along with the
identifier "$VER: " will be written to the file
"<name>_ver.o" as a CODE segment.
If the NEXT switch is used, the file "<name>_ver_next" will
be read, or, if one does not exist, the normal file will be
read and its revision number incremented. The new version
number will be written to the file "<name>_ver", and the
file "<name>_ver_next" will be deleted if it exists.
CONTACT ME
As yet I can only be contacted by Snail-mail.
My address is:
43 Harrison Close
Reigate
Surrey RH2 7HS
ENGLAND