From: Juliusz Gonera Date: Wed, 5 Mar 2014 23:32:00 +0000 (-0800) Subject: Stop make kss from opening browser X-Git-Tag: 1.31.0-rc.0~16478^2 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=d1f4fd35a46ae2fe9a96987712792bf517997548;p=lhc%2Fweb%2Fwiklou.git Stop make kss from opening browser Instead add make kssopen that opens the browser with the styleguide. Most people will probably keep the style guide open in the browser and refresh it themselves if they need to. Change-Id: I5fd82d01da1c7f4bbf48ad921c2e7cb0407974b3 --- diff --git a/resources/Makefile b/resources/Makefile index 0d9608f0fc..1b7aeb164a 100644 --- a/resources/Makefile +++ b/resources/Makefile @@ -8,10 +8,12 @@ kss: nodecheck $(eval KSS_RL_TMP := $(shell mktemp /tmp/tmp.XXXXXXXXXX)) @curl -sG "${MEDIAWIKI_LOAD_URL}?modules=mediawiki.ui|mediawiki.ui.button&only=styles" > $(KSS_RL_TMP) @node_modules/.bin/kss-node mediawiki.ui mediawiki.ui/docs --css $(KSS_RL_TMP) -t styleguide-template + @rm $(KSS_RL_TMP) + +kssopen: kss @echo Opening the generated style guide... - @command -v xdg-open >/dev/null 2>&1 || { open ${PWD}/mediawiki.ui/docs/index.html; exit 1; } + @command -v xdg-open >/dev/null 2>&1 || { open ${PWD}/mediawiki.ui/docs/index.html; exit 0; } @xdg-open ${PWD}/mediawiki.ui/docs/index.html - @rm $(KSS_RL_TMP) nodecheck: @scripts/nodecheck.sh