Skip to content

Commit

Permalink
use node -p in the makefile
Browse files Browse the repository at this point in the history
instead of console.log
  • Loading branch information
jneen committed Mar 10, 2014
1 parent b498010 commit cc87b62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -48,7 +48,7 @@ report: $(UGLY)
# -*- packaging -*- # # -*- packaging -*- #


# XXX this is kind of awful, but hey, it keeps the version info in the right place. # XXX this is kind of awful, but hey, it keeps the version info in the right place.
VERSION = $(shell node -e 'console.log(require("./package.json").version)') VERSION = $(shell node -p 'require("./package.json").version')
PACKAGE = tmp/parsimmon-$(VERSION).tgz PACKAGE = tmp/parsimmon-$(VERSION).tgz
DISTDIR = parsimmon-$(VERSION) DISTDIR = parsimmon-$(VERSION)
DIST = $(DISTDIR).tgz DIST = $(DISTDIR).tgz
Expand Down

0 comments on commit cc87b62

Please sign in to comment.