From: Francois Fleuret Date: Fri, 10 Apr 2009 15:41:00 +0000 (+0200) Subject: Removed the automatic computation of the revision number. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=selector.git;a=commitdiff_plain;h=0011341d45f00444e2ba395bb749e1b39d94c276;hp=a249ecc3eaf804c159f3e1efb31da118d783d2fb 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. --- 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"