Merge pull request #569 from caspervonb/makefile-open
Use $BROWSER with fallbacks for opening browser tests
This commit is contained in:
commit
738203485c
5
Makefile
5
Makefile
@ -65,7 +65,10 @@ test-browser:
|
|||||||
node $(BROWSERIFY_CMD) -e test/_browser.js >dist/6to5-test.js
|
node $(BROWSERIFY_CMD) -e test/_browser.js >dist/6to5-test.js
|
||||||
rm -rf templates.json tests.json
|
rm -rf templates.json tests.json
|
||||||
|
|
||||||
test -n "`which open`" && open test/browser.html
|
if [ -n $$BROWSER ]; then $$BROWSER test/browser.html; \
|
||||||
|
elif which xdg-open > /dev/null; then xdg-open 'test/browser.html'; \
|
||||||
|
elif which gnome-open > /dev/null; then gnome-open 'test/browser.html'; \
|
||||||
|
elif which open > /dev/null; then open 'test/browser.html'; fi \
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
git pull --rebase
|
git pull --rebase
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user