From 5e58286468a9e510d581ca0012351ad94968bc24 Mon Sep 17 00:00:00 2001 From: springmeyer Date: Wed, 22 Aug 2012 14:42:14 -0700 Subject: [PATCH] Updated MapnikReleaseSteps (markdown) --- MapnikReleaseSteps.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MapnikReleaseSteps.md b/MapnikReleaseSteps.md index 53ebf97..180aa8d 100644 --- a/MapnikReleaseSteps.md +++ b/MapnikReleaseSteps.md @@ -85,13 +85,16 @@ TARBALL_NAME="mapnik-v${MAPNIK_VERSION}" git clone git@github.com:mapnik/mapnik.git ${TARBALL_NAME} cd ${TARBALL_NAME} git checkout "tags/v${MAPNIK_VERSION}" +git rev-list --max-count=1 HEAD > GIT_REVISION cd ../ rm -rf ${TARBALL_NAME}/.git rm -rf ${TARBALL_NAME}/.gitignore tar cjf ${TARBALL_NAME}.tar.bz2 ${TARBALL_NAME}/ ``` -Note: if creating a release candidate do instead: +Note: the GIT_REVISION file is used as per https://github.com/mapnik/mapnik/issues/1170. We write a file before making the tarball so that systems that do not have git installed or that download the raw tarball can still know the git revision and mapnik-config will report after source build. + +If creating a release candidate do instead: ```sh cd /tmp