From 5264e34ea6f215cdbe7940afe64e1487556c896c Mon Sep 17 00:00:00 2001 From: tiff Date: Tue, 17 Jul 2012 22:58:24 +0200 Subject: [PATCH] Make sure that 'make unittest' works on almost all platforms (fixes #150) --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 89497614..3517de4d 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,8 @@ VERSION = $(shell cat version.txt) JS_OUTPUT = "dist/wysihtml5-${VERSION}.js" +OPEN = $(shell which xdg-open || which gnome-open || which open) + JS_FILES = src/wysihtml5.js \ lib/rangy/rangy-core.js \ lib/base/base.js \ @@ -90,7 +92,7 @@ minify: @@echo "Done." unittest: bundle - @@open test/index.html + @@${OPEN} test/index.html clean: @@git co ${JS_OUTPUT}