Parcourir la 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 il y a 15 ans
Parent
révision
dc0bbb2957
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      Makefile

+ 1
- 1
Makefile Voir le fichier

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