Sfoglia il codice sorgente

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 anni fa
parent
commit
dc0bbb2957
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      Makefile

+ 1
- 1
Makefile Vedi 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