From 0011341d45f00444e2ba395bb749e1b39d94c276 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Fri, 10 Apr 2009 17:41:00 +0200 Subject: [PATCH] Removed the automatic computation of the revision number. Computing the revision number from the git log sucks. The log is not the same for everybody and there is no simple way to compute some increasing number. The web tell me so after 30min of googling. --- Makefile | 2 +- mkdeb.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1768697..42ef385 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ MAN_PATH = /usr/share/man/man1 LDFLAGS=-lcurses -REVISION_NUMBER=$(shell git log | grep ^commit | wc -l | sed -e "s/[^0-9]//g") +REVISION_NUMBER=$(cat REVISION_NUMBER) ifeq ($(DEBUG),yes) OPTIMIZE_FLAG = -ggdb3 -DDEBUG diff --git a/mkdeb.sh b/mkdeb.sh index 51d023a..cc69852 100755 --- a/mkdeb.sh +++ b/mkdeb.sh @@ -25,7 +25,7 @@ # This script creates the Debian package. The way it does it is # probably not very conventional. I am open to suggestions. -VERSION=1.0-R`git log | grep ^commit | wc -l | sed -e "s/[^0-9]//g"` +VERSION=1.0-R$(cat REVISION_NUMBER) PACKAGE=/tmp/selector_${VERSION}_i386.deb BIN_PATH="usr/bin" MAN_PATH="usr/share/man/man1" -- 2.39.5