A script for extracting version information useful in release/build scripting.
Shell Makefile Python C
Latest commit 2f4e076 Jan 10, 2017 @dak180 dak180 Update the news.
Permalink
Failed to load latest commit information.
.github Add some templates for github. Nov 12, 2016
contribs
examples
.editorconfig Add .editorconfig file May 15, 2016
.gitignore Clean up. Jan 10, 2017
.mailmap
CONTRIBUTING.md Use https instead of http for the ShellCheck link Aug 13, 2016
COPYING.md Update copyright year. Jan 2, 2017
Makefile Clean up. Jan 10, 2017
NEWS Update the news. Jan 10, 2017
README.md Point at the relative man page. Jan 24, 2015
autorevision.asciidoc Fix ups for the cmake output. Nov 15, 2016
autorevision.sh Update copyright year. Jan 2, 2017
control Update the control file. Jan 3, 2017
test.sh Make sure the cache file is not polluted by outputting it first. Dec 31, 2016

README.md

Autorevision

A shell script for extracting revision information useful in release/build scripting from repositories.

Supported repository types include git, hg, bzr, and svn. The record can be emitted in a ready-to-use form for C, C++, Java, bash, Python, Perl, lua, php, ini and others.

Emitted information includes the ID of the most recent commit, its branch, its date, and several other useful pieces of meta-information.

There is support for reading and writing a cache file so autorevision will remain useful during a build from an unpacked distribution tarball.

See the manual page, included in the distribution, for invocation details.

You can check out examples of the different output that autorevision can produce in examples.