1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-28 11:02:27 +01:00

Use dash for sh where available.

This commit is contained in:
Kris Maglione
2014-03-29 10:04:43 -07:00
parent 3380ed7cb6
commit e7549b249b
4 changed files with 35 additions and 13 deletions

View File

@@ -1,11 +1,17 @@
#### configuration
_SH := $(shell if which dash >/dev/null 2>&1; \
then echo dash; \
else echo sh; \
fi)
SH ?= $(_SH)
AWK ?= awk
B64ENCODE ?= base64
CURL ?= curl
SED := $(shell if [ "xoo" = x$$(echo foo | sed -E 's/f(o)/\1/' 2>/dev/null) ]; \
then echo sed -E; else echo sed -r; \
then echo sed -E; \
else echo sed -r; \
fi)
TOP = $(shell pwd)
@@ -28,7 +34,7 @@ LOCALEDIR = locale
DOC_FILES = $(wildcard $(LOCALEDIR)/*/*.xml)
export VERSION BUILD_DATE
MAKE_JAR = sh $(BASE)/make_jar.sh
MAKE_JAR = $(SH) $(BASE)/make_jar.sh
# TODO: specify source files manually?
JAR_BASES = $(TOP) $(BASE)