File | Date | Author | Commit |
---|---|---|---|
DEBIAN | 2025-07-02 |
![]() |
[b70721] Restructuring the code |
pip-config | 2025-03-04 |
![]() |
[f48f9d] Some more changes to facilitate making debian p... |
src | 2025-07-02 |
![]() |
[b70721] Restructuring the code |
tests | 2025-07-02 |
![]() |
[b70721] Restructuring the code |
tools | 2025-07-02 |
![]() |
[b70721] Restructuring the code |
.hgignore | 2025-02-21 |
![]() |
[8c2b4e] Adding methods to the TestCase in testutils |
Makefile | 2025-07-02 |
![]() |
[b70721] Restructuring the code |
README.md | 2025-02-24 |
![]() |
[3fd054] Some first documentation |
install | 2025-03-17 |
![]() |
[60d510] Don't compile example files |
versioning [-bims] [--append=tail] [--bump=bumppoint] [--cut=cutpoint] [--restore] [--restore] ... files...
This little application goes through a file and searches for assignments/configurations of four
names: version, modified, installed and built and adapts the values associated with the name accoring
the given flags.
The most interresting is how it changes versions. Version are expected to be limbs seperated by joints.
A joint is one of the following characters: '.:+-'
A limb can be a number, it can be a single latin letter, it can be a single greek letter or it can be a lable,
a group of letters.
Limbs of different types don't need to be seperated by a joints.
So for as far as this application is concerned this are al valid versions:
3.7, 6.2a, 1:5.2.01, 8.32A.13-AP, 2A+EL.3:2
Options are:
-b: Changes the built value to the current date, otherwise change it to '**'
-i: Changes the installed value to the current date, otherwise change it to '**'
-m: Change the modified value to the current date, otherwise leave it as it.
-s: Instead of making the changes inline, writes out the changed file to stdout.
Arguments are:
--append=tail: Append the tail to the version.
--cut=cutpoint: Cut a piece of the version. Using a negative value, count the cut point from the rear.
--bump=bumppoint: Increase the limb indicated by the bumppoint. All limbs following will be set to the base
value for that limb types. Lables can't be bumped.
Examples:
versioning --bump=-2 will change 0.5.3 to 0.6.0
versioning --cut=-1 --bump=2 will change 0.6.4A to 0.7.0