Browse Source

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 <penberg@kernel.org>
Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>
Pekka Enberg 15 years ago
parent
commit
dc0bbb2957
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Makefile

+ 1
- 1
Makefile View File

@@ -4,7 +4,7 @@ RESOURCEDIR=$(PREFIX)/share/gitstats
4 4
 RESOURCES=gitstats.css sortable.js *.gif
5 5
 BINARIES=gitstats
6 6
 VERSION=$(shell git describe 2>/dev/null || git rev-parse --short HEAD)
7
-SEDVERSION=sed -i 's/VERSION = 0/VERSION = "$(VERSION)"/'
7
+SEDVERSION=perl -pi -e 's/VERSION = 0/VERSION = "$(VERSION)"/' --
8 8
 
9 9
 all: help
10 10