File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 11SHELL := bash
22INSTALL ?= install
3+ REALPATH := $(shell if [ $OSTYPE == 'darwin'* ]; then echo grealpath; else echo realpath; fi)
34
45# Make sure we have git:
56ifeq ($(shell which git) ,)
@@ -22,7 +23,7 @@ INSTALL_BIN ?= $(PREFIX)/bin
2223INSTALL_LIB ?= $(PREFIX ) /share/$(NAME )
2324INSTALL_EXT ?= $(INSTALL_LIB ) /$(NAME ) .d
2425INSTALL_MAN1 ?= $(PREFIX ) /share/man/man1
25- LINK_REL_DIR := $(shell realpath --relative-to=$(INSTALL_BIN ) $(INSTALL_LIB ) )
26+ LINK_REL_DIR := $(shell $( REALPATH ) --relative-to=$(INSTALL_BIN ) $(INSTALL_LIB ) )
2627
2728# Docker variables:
2829DOCKER_TAG ?= 0.0.6
Original file line number Diff line number Diff line change 22
33set -e
44
5- export LC_ALL=C.UTF-8
5+ if [[ $OSTYPE != ' darwin' * ]]; 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