File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
SHELL := bash
2
2
INSTALL ?= install
3
+ REALPATH := $(shell if [ $OSTYPE == 'darwin'* ]; then echo grealpath; else echo realpath; fi)
3
4
4
5
# Make sure we have git:
5
6
ifeq ($(shell which git) ,)
@@ -22,7 +23,7 @@ INSTALL_BIN ?= $(PREFIX)/bin
22
23
INSTALL_LIB ?= $(PREFIX ) /share/$(NAME )
23
24
INSTALL_EXT ?= $(INSTALL_LIB ) /$(NAME ) .d
24
25
INSTALL_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 ) )
26
27
27
28
# Docker variables:
28
29
DOCKER_TAG ?= 0.0.6
Original file line number Diff line number Diff line change 2
2
3
3
set -e
4
4
5
- export LC_ALL=C.UTF-8
5
+ if [[ $OSTYPE != ' darwin' * ]]; then
6
+ export LC_ALL=C.UTF-8
7
+ fi
6
8
7
9
# Get the location of this script
8
10
SCRIPT_DIR=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd )
You can’t perform that action at this time.
0 commit comments