From b768d2d28bd882a2e4e5971ed5fb848a0c24a8fb Mon Sep 17 00:00:00 2001 From: Nicolas Sebrecht Date: Thu, 27 Jan 2011 21:17:35 +0100 Subject: [PATCH] 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 --- Changelog.draft.rst | 2 ++ Makefile | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Changelog.draft.rst b/Changelog.draft.rst index 8b599f9..bb960e4 100644 --- a/Changelog.draft.rst +++ b/Changelog.draft.rst @@ -16,6 +16,8 @@ New Features Changes ------- +* Makefile use magic to find the version number. + Bug Fixes --------- diff --git a/Makefile b/Makefile index 7d45f38..597c49b 100644 --- a/Makefile +++ b/Makefile @@ -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`