소스 검색

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 년 전
부모
커밋
dc0bbb2957
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      Makefile

+ 1
- 1
Makefile 파일 보기

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