fix 'make versioncheck' broken in prev commit

This commit is contained in:
Trent Mick 2015-09-07 14:44:52 -07:00
parent 77e239ce24
commit 3554d8076f

View file

@ -37,7 +37,7 @@ all $(NODEUNIT):
.PHONY: versioncheck .PHONY: versioncheck
versioncheck: versioncheck:
@echo version is: $(shell cat package.json | json version) @echo version is: $(shell cat package.json | json version)
[[ `cat package.json | json version` == `grep '^## ' CHANGES.md | head -1 | awk '{print $$3}'` ]] [[ `cat package.json | json version` == `grep '^## ' CHANGES.md | head -1 | awk '{print $$2}'` ]]
[[ `cat package.json | json version` == `grep '^var VERSION' bin/bunyan | awk -F"'" '{print $$2}'` ]] [[ `cat package.json | json version` == `grep '^var VERSION' bin/bunyan | awk -F"'" '{print $$2}'` ]]
[[ `cat package.json | json version` == `grep '^var VERSION' lib/bunyan.js | awk -F"'" '{print $$2}'` ]] [[ `cat package.json | json version` == `grep '^var VERSION' lib/bunyan.js | awk -F"'" '{print $$2}'` ]]
@echo Version check ok. @echo Version check ok.