OS4Depot.net 20130227_1013
  Home Search Mirrors Contact Info Credits

 Readme data for Root » Development » Utility » revbump.lha

Description: A revision bumper with extra fields
Install: revbump.lha
Size: 40kb 5
Version: 51.3
Date: 21 Sep 06
Author: Joachim Birging
Submitter: Steven Solie
Email: ssolie/telus net
Category: development/utility
License: Public domain
Distribute: yes
Min OS Version: 4.0
revbump.readme:
---------------
revbump - a revision bumper that supports version numbers like 4.17.13 and
a few things more. Released as Public Domain.

Binaries for AmigaOS 3, AmigaOS 4, MorphOS, x86-AROS and x86-linux
included in this archive.


Usage:
------
revbump <name> [ver|rev|sub] [<version>] [<revision>] [<subrevision>]

name: The name of the project. Resulting file will use it as basename,
example name_rev.h. Must be the second argument.

ver: This switch will bump the version number.

rev: This switch will bump the revision number. This is the default
behavior if leaving out any of the ver, rev or sub arguments.

sub: This switch will bump the subrevision number.

version: The version number you want the project to have. If this is the
last argument revision and subrevision will be set to 0.

revision: The revision number the project should have. If this is the last
argument subrevision will be set to 0.

subrevision: The subrevision of the project, for full control of the
entire version.revision.subrevision line.

revbump - a revision bumper that supports version numbers like 4.17.13 and
a few things more. Released as Public Domain.

Binaries for AmigaOS 3, AmigaOS 4, MorphOS, x86-AROS and x86-linux
included in this archive.


Usage:
------
revbump <name> [ver|rev|sub] [<version>] [<revision>] [<subrevision>]

name: The name of the project. Resulting file will use it as basename,
example name_rev.h. Must be the second argument.

ver: This switch will bump the version number.

rev: This switch will bump the revision number. This is the default
behavior if leaving out any of the ver, rev or sub arguments.

sub: This switch will bump the subrevision number.

version: The version number you want the project to have. If this is the
last argument revision and subrevision will be set to 0.

revision: The revision number the project should have. If this is the last
argument subrevision will be set to 0.

subrevision: The subrevision of the project, for full control of the
entire version.revision.subrevision line.


The result:
-----------
Best is a sample file, produced by the command 'revbump project'

---
#define VERSION	0
#define REVISION	1
#define SUBREVISION	0

#define DATE	"11.09.2006"
#define VERS	"project 0.1"
#define VSTRING	"project 0.1 (11.09.2006)rn"
#define VERSTAG	"$VER: project 0.1 (11.09.2006)"

#define VERSION_STR	"0"
#define REVISION_STR	"1"
#define SUBREVISION_STR	"0"

#define NEW_VERS	"project 0.1.0"
#define NEW_VSTRING	"project 0.1.0 (11.09.2006)rn"
#define NEW_VERSTAG	"$VER: project 0.1.0 (11.09.2006)"
---

Same tags as with normal 'bumprev', but some extra tags as well.


Examples:
---------
'revbump project' :
Will create a file project_rev.h, with version number 0.0.1, or if the
file project_rev.h exists, bump the revision for it.

'revbump project sub' :
Will bump the subrevision of project. This switch will have no effect if
the file project_rev.h does not exist.

'revbump project 4 17 13' :
Will set the version number to 4.17.13.


History:
--------
51.3 - Added "touch" argument, will only update the date.
     - When subrevision = 0 it will not be shown in the versionstring.

51.2 - Bugfix version. Added "ver", "rev" and "sub" arguments.

51.1 - Quickly removed from AmiNet, severe bug encountered.





Copyright (c) 2004-2013 Björn Hagström. All rights reserved.
OS4 and its logos are registered trademarks of Hyperion Entertainment