From 585aea34e0232a2cfce616cfb43e8e7aaf1c8408 Mon Sep 17 00:00:00 2001 From: Nicholas Sherlock Date: Thu, 21 Jul 2016 19:51:35 +1200 Subject: [PATCH] Support non-bash shells in "make browserify" This fixes "-n" to do what it's supposed to do instead of printing a literal "-n" to the file in OS X. http://stackoverflow.com/a/25840639/14431 --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 1f41123..475d6fd 100644 --- a/Makefile +++ b/Makefile @@ -45,13 +45,13 @@ browserify: rm -rf ./dist mkdir dist # Browserify - ( echo -n "/* ${NPM_PACKAGE} ${NPM_VERSION} ${GITHUB_PROJ} */" ; \ + ( printf %s "/* ${NPM_PACKAGE} ${NPM_VERSION} ${GITHUB_PROJ} */" ; \ ./node_modules/.bin/browserify -r ./ -s pako \ ) > dist/pako.js - ( echo -n "/* ${NPM_PACKAGE} ${NPM_VERSION} ${GITHUB_PROJ} */" ; \ + ( printf %s "/* ${NPM_PACKAGE} ${NPM_VERSION} ${GITHUB_PROJ} */" ; \ ./node_modules/.bin/browserify -r ./lib/deflate.js -s pako \ ) > dist/pako_deflate.js - ( echo -n "/* ${NPM_PACKAGE} ${NPM_VERSION} ${GITHUB_PROJ} */" ; \ + ( printf %s "/* ${NPM_PACKAGE} ${NPM_VERSION} ${GITHUB_PROJ} */" ; \ ./node_modules/.bin/browserify -r ./lib/inflate.js -s pako \ ) > dist/pako_inflate.js # Minify