Command line tool to duplicate/modify version number strings across source code and distribution files according to syntax context.

⌈⌋ branch:  version numbers get/write

Update of "version numbers get/write"

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.


Artifact ID: a4c90206e3a1de6d3e10a059799ade6dde905f33
Page Name:version numbers get/write
Date: 2014-02-10 00:34:29
Original User: mario
Parent: ca977dfbad117f791d774f8339c15fe08f818107 (diff)
Next 94e052851dd156298a9d025ebf5b644b69333444

version numbers get / write

This is a commandline tool to update version numbers across source code files.

version -get file.c -bump -write pkg/DEBIAN/control

It understands multiple syntax contexts to constrain write operations. And the command arguments can be mixed naturally.


Just running the script displays a simple help (same as atop the code).

But there's also a manpage.


It's useful for preparing a manual packaging process. It can keep version numbers in sync across source code to documentation and build scripts.

Earlier implementations of this were patched to a specific language or too generic. This consolidates the regex handling and command line interface.

There are probably other tools like that, but they're obviously not easy to google (those that are are also domain-specific and tied to particular languages).


See for the download repository.

project updates

Updates are announced on