[PATCH 2/1] Makefile: get version number dynamically

Nicolas Sebrecht nicolas.s-dev at laposte.net
Thu Jan 27 20:26:46 GMT 2011


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 at laposte.net>
---

This patch comes on top of Sebastian's one.


 Changelog.draft.rst |    1 +
 Makefile            |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/Changelog.draft.rst b/Changelog.draft.rst
index 1b68f5c..f9adddb 100644
--- a/Changelog.draft.rst
+++ b/Changelog.draft.rst
@@ -16,6 +16,7 @@ New Features
 Changes
 -------
 
+* Makefile use magic to find the version number
 * have --version ONLY print the version number
 
 Bug Fixes
diff --git a/Makefile b/Makefile
index 125e396..7d6ed23 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=4.0.16
+VERSION=`./offlineimap.py --version`
 TARGZ=offlineimap_$(VERSION).tar.gz
 SHELL=/bin/bash
 
-- 
1.7.4.rc1.220.g438e4





More information about the OfflineIMAP-project mailing list