Pārlūkot izejas kodu

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 gadus atpakaļ
vecāks
revīzija
dc0bbb2957
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      Makefile

+ 1
- 1
Makefile Parādīt failu

@@ -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