/gitversion2c

A useful script for automatically updating the version number in the C/C++ source code.

Primary LanguagePythonMIT LicenseMIT

Gitversion2C

A useful script for automatically updating the version number in the C/C++ source code.

Dependencies

Usage

Manually:

`python gitversion2c.py generate commithash.c.gitver.template -o version.c`
`python gitversion2c.py rename path/to/artifact -proj fancy_name`

You can also integrate with make or cmake, put it into some pre-build step.

Philosophy & Concepts

Semantic Versioning a standard for describing software