Cosmetics.
authorFrancois Fleuret <francois@fleuret.org>
Fri, 10 Apr 2009 15:32:14 +0000 (17:32 +0200)
committerFrancois Fleuret <francois@fleuret.org>
Fri, 10 Apr 2009 15:32:14 +0000 (17:32 +0200)
mkdeb.sh

index 2c19496..51d023a 100755 (executable)
--- 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`
+VERSION=1.0-R`git log | grep ^commit | wc -l | sed -e "s/[^0-9]//g"`
 PACKAGE=/tmp/selector_${VERSION}_i386.deb
 BIN_PATH="usr/bin"
 MAN_PATH="usr/share/man/man1"