File tree 3 files changed +9
-3
lines changed
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
SHELL := bash
2
2
INSTALL ?= install
3
+ UNAME := $(shell uname) ;
4
+ REALPATH := $(shell if [ "$(UNAME ) " == "Darwin" ]; then echo grealpath; else echo realpath; fi)
3
5
4
6
# Make sure we have git:
5
7
ifeq ($(shell which git) ,)
@@ -22,7 +24,7 @@ INSTALL_BIN ?= $(PREFIX)/bin
22
24
INSTALL_LIB ?= $(PREFIX ) /share/$(NAME )
23
25
INSTALL_EXT ?= $(INSTALL_LIB ) /$(NAME ) .d
24
26
INSTALL_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 ) )
26
28
27
29
# Docker variables:
28
30
DOCKER_TAG ?= 0.0.6
49
51
50
52
.PHONY : test
51
53
test :
54
+ @echo UNAME: ' $(UNAME)'
52
55
prove $(prove ) $(test )
53
56
54
57
test-all : test docker-tests
Original file line number Diff line number Diff line change 12
12
export FILTER_BRANCH_SQUELCH_WARNING=1
13
13
14
14
# Import Bash+ helper functions:
15
- SUBREPO_EXT_DIR=" $( dirname " $( realpath " ${BASH_SOURCE[0]} " ) " ) /git-subrepo.d" # replaced by `make install`
15
+ REALPATH=$( if [ " $( uname) " == " Linux" ]; then echo realpath; else echo realpath; fi)
16
+ SUBREPO_EXT_DIR=" $( dirname " $( $REALPATH " ${BASH_SOURCE[0]} " ) " ) /git-subrepo.d" # replaced by `make install`
16
17
source " ${SUBREPO_EXT_DIR} /bash+.bash"
17
18
bash+:import :std can version-check
18
19
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 [ " $( uname) " == " Linux" ]; 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