diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2015-02-21 23:45:21 -0600 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2015-02-21 23:45:21 -0600 |
commit | e6121708e5d1297f92fcecfa4025b222e805c743 (patch) | |
tree | 2c594170967fc7d9ea1d9933cc88e92c31f891b0 | |
parent | 743af6ba133ab526726da4c807c64f8f426843db (diff) | |
download | mediagoblin-e6121708e5d1297f92fcecfa4025b222e805c743.tar.lz mediagoblin-e6121708e5d1297f92fcecfa4025b222e805c743.tar.xz mediagoblin-e6121708e5d1297f92fcecfa4025b222e805c743.zip |
Let's try setting up the version number via configure.ac
Why not?
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | configure.ac | 12 | ||||
-rw-r--r-- | mediagoblin/_version.py.in (renamed from mediagoblin/_version.py) | 2 |
3 files changed, 13 insertions, 2 deletions
@@ -32,6 +32,7 @@ # pyconfigure/automake generated files /Makefile +/mediagoblin/_version.py /autom4te.cache/ /config.log /config.status diff --git a/configure.ac b/configure.ac index 99484906..b4438d5c 100644 --- a/configure.ac +++ b/configure.ac @@ -46,6 +46,16 @@ dnl 2) package version (i.e. 1.2) dnl 3) bug/info/project email address (i.e. bug-foo@gnu.org) dnl---- dnl + +dnl # valid version formats: +dnl # * x.y - final release +dnl # * x.ya1 - alpha 1 +dnl # * x.yb1 - beta 1 +dnl # * x.yrc1 - release candidate 1 +dnl # * x.y.dev - dev +dnl +dnl # see http://www.python.org/dev/peps/pep-0386/ + AC_INIT([mediagoblin], [0.8.1.dev], [cwebber@gnu.org]) @@ -145,7 +155,7 @@ dnl Finish # dnl######### dnl Define the files to be configured -AC_CONFIG_FILES([Makefile]) +AC_CONFIG_FILES([Makefile] [mediagoblin/_version.py]) dnl Generate config.status AC_OUTPUT diff --git a/mediagoblin/_version.py b/mediagoblin/_version.py.in index b82f3f1f..d180f750 100644 --- a/mediagoblin/_version.py +++ b/mediagoblin/_version.py.in @@ -23,4 +23,4 @@ # see http://www.python.org/dev/peps/pep-0386/ -__version__ = "0.7.2.dev" +__version__ = "@PACKAGE_VERSION@" |