shellscript
Version:
Use shell commands directly from nodejs to make synchronous shell scripts.
23 lines (16 loc) • 358 B
Plain Text
DIFF ?= git --no-pager diff --ignore-all-space --color-words --no-index
.PHONY: test
test:
$(MAKE) ascript pidgrep
test_pass:
DIFF=cp $(MAKE) test
ascript:
./test/ascript > /tmp/$@
$(DIFF) /tmp/$@ test/expected/$@
pidgrep:
./test/pidgrep > /tmp/$@
$(DIFF) /tmp/$@ test/expected/$@
clean:
-rm -rf node_modules build
rebuild: clean
npm install