Commit Graph

5 Commits

Author SHA1 Message Date
Hans Ulrich Niedermann 6dd1c20816 Honor GIT_DIR setting when determining version
If GIT_DIR is not set, fall back to top_srcdir/.git

Signed-off-by: Julien Danjou <julien@danjou.info>
2008-01-30 09:22:45 +01:00
Hans Ulrich Niedermann eadebdd35d Add version generation script, version stamp file
Use a single script to generate the version number from git. This script

  * strips the v from the start of the "git describe" output
  * changes all "-" occurences to "."
  * does NOT create a properly sortable version number from "2.1-rc2"
    type "git describe" output
  * does NOT generate a "proper" "1.2.3" type version number under any
    circumstances
  * will generate "2.1" in case the "git describe" output is "2.1"

These policy might need closer adaption to awesome's tagging habit
some time.

In dist tarballs, ship a "version-stamp" file with the package version
in it. If the "version-stamp" file is present (i.e. if it is a source
tree from a dist tarball), no git checks will be performed.

Concept from autoconf, but code written from scratch to match
awesome's requirements.

Signed-off-by: Julien Danjou <julien@danjou.info>
2008-01-15 08:21:43 +01:00
Hans Ulrich Niedermann 26d54994c4 autogen.sh: update package version when necessary
Force update of PACKAGE_VERSION from "git describe" when necessary.
2008-01-09 17:47:59 +01:00
Hans Ulrich Niedermann b55774c0e0 autogen.sh: Change to source directory first
Change to the source tree's top directory before doing anything else.
2008-01-09 17:47:01 +01:00
marco candrian 88a0b1cd12 autogen.sh added 2008-01-05 11:42:28 +01:00