From 42fbac5bf3c89a9a9bcd47d04b4dfbfd0b602b62 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Thu, 9 Dec 2010 08:15:57 +0100 Subject: [PATCH] Take REVNO variable from revno.h as well, so use of GIT is centralized in a single rule --- packaging/snapshot.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/snapshot.am b/packaging/snapshot.am index 161571a3f..8efdc3485 100644 --- a/packaging/snapshot.am +++ b/packaging/snapshot.am @@ -20,8 +20,8 @@ NOW := $(shell date "+%Y%m%d") # The branch nickname and revision number must be set before including # the other Makefile fragments used for package building, as they use # these values. -BRANCH_REVNO := $(shell (cd $(top_srcdir) ; git log | grep commit | wc -l)) -BRANCH_NICK := $(shell grep "NICK" revno.h | cut -d '"' -f 2) +BRANCH_REVNO := $(shell grep "REVNO" $(top_srcdir)/revno.h | cut -d '"' -f 2) +BRANCH_NICK := $(shell grep "NICK" $(top_srcdir)/revno.h | cut -d '"' -f 2) # this is used for Debian style naming conventions NEXT_RELEASE = 0.8.9 -- 2.11.4.GIT