From dc0bbb295757fae0e970be7809359c5c00dd0cc6 Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Tue, 28 Sep 2010 17:20:41 +0300 Subject: [PATCH] Use perl for version number replacement. This patch changes Makefile to use perl for version number replacement to fix 'make install' on Darwin. The problem is that GNU sed and sed on Darwin (and probably on BSDs) behave differently with regards to the '-i' command line option. Signed-off-by: Pekka Enberg Signed-off-by: Heikki Hokkanen --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 740d5e5..9c21cfb 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ RESOURCEDIR=$(PREFIX)/share/gitstats RESOURCES=gitstats.css sortable.js *.gif BINARIES=gitstats VERSION=$(shell git describe 2>/dev/null || git rev-parse --short HEAD) -SEDVERSION=sed -i 's/VERSION = 0/VERSION = "$(VERSION)"/' +SEDVERSION=perl -pi -e 's/VERSION = 0/VERSION = "$(VERSION)"/' -- all: help