File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 11SHELL := bash
22INSTALL ?= install
3+ UNAME := $(shell uname) ;
4+ REALPATH := $(shell if [ $(UNAME ) == "Darwin" ]; then echo grealpath; else echo realpath; fi)
35
46# Make sure we have git:
57ifeq ($(shell which git) ,)
@@ -22,7 +24,7 @@ INSTALL_BIN ?= $(PREFIX)/bin
2224INSTALL_LIB ?= $(PREFIX ) /share/$(NAME )
2325INSTALL_EXT ?= $(INSTALL_LIB ) /$(NAME ) .d
2426INSTALL_MAN1 ?= $(PREFIX ) /share/man/man1
25- LINK_REL_DIR := $(shell realpath --relative-to=$(INSTALL_BIN ) $(INSTALL_LIB ) )
27+ LINK_REL_DIR := $(shell $( REALPATH ) --relative-to=$(INSTALL_BIN ) $(INSTALL_LIB ) )
2628
2729# Docker variables:
2830DOCKER_TAG ?= 0.0.6
4951
5052.PHONY : test
5153test :
54+ @echo UNAME: ' $(UNAME)'
5255 prove $(prove ) $(test )
5356
5457test-all : test docker-tests
Original file line number Diff line number Diff line change 22
33set -e
44
5- export LC_ALL=C.UTF-8
5+ if [ " $( uname) " == " Linux" ]; then
6+ export LC_ALL=C.UTF-8
7+ fi
68
79# Get the location of this script
810SCRIPT_DIR=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd )
You can’t perform that action at this time.
0 commit comments