Fixed a bug with wc on macOS (thanks P. Abbet and M. L. Grinshpun).
authorFrancois Fleuret <francois@fleuret.org>
Fri, 10 Apr 2009 15:29:31 +0000 (17:29 +0200)
committerFrancois Fleuret <francois@fleuret.org>
Fri, 10 Apr 2009 15:29:31 +0000 (17:29 +0200)
Makefile

index d80b4cd..1768697 100644 (file)
--- 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)
+REVISION_NUMBER=$(shell git log | grep ^commit | wc -l | sed -e "s/[^0-9]//g")
 
 ifeq ($(DEBUG),yes)
   OPTIMIZE_FLAG = -ggdb3 -DDEBUG