Makefile: get version number dynamically

Avoid static version number in the Makefile. It's a possible source of errors,
especially for me.

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Nicolas Sebrecht 2011-01-27 21:17:35 +01:00
parent 374dea8063
commit b768d2d28b
2 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,8 @@ New Features
Changes
-------
* Makefile use magic to find the version number.
Bug Fixes
---------

View File

@ -15,7 +15,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
VERSION=6.3.2
VERSION=`./offlineimap.py --version`
TARGZ=offlineimap_$(VERSION).tar.gz
SHELL=/bin/bash
RST2HTML=`type rst2html 2>/dev/null 2>&1 && echo rst2html || echo rst2html.py`