File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
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 1212export FILTER_BRANCH_SQUELCH_WARNING=1
1313
1414# 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`
1617source " ${SUBREPO_EXT_DIR} /bash+.bash"
1718bash+:import :std can version-check
1819
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