diff options
author | isaacs <i@izs.me> | 2012-02-07 15:41:21 -0800 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-08-04 10:13:06 -0700 |
commit | 2a1f022d207c1025a994a34d416fbaa331ca2b44 (patch) | |
tree | fc252cc4067ef56b87aae4d3a86ee99fe2f86314 | |
parent | 2dcaef6efa13242cff9fc5ac9938e2912d2c0ace (diff) | |
download | node-2a1f022d207c1025a994a34d416fbaa331ca2b44.tar.gz |
Check the version before building tarball
I keep forgetting to do this. It's such a stupid thing.
-rw-r--r-- | Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -207,7 +207,16 @@ $(PKG): --doc tools/osx-pkg.pmdoc \ --out $(PKG) -$(TARBALL): out/doc +$(TARBALL): node out/doc + @if [ $(shell ./node --version) = "$(VERSION)" ]; then \ + exit 0; \ + else \ + echo "" >&2 ; \ + echo "$(shell ./node --version) doesn't match $(VERSION)." >&2 ; \ + echo "Did you remember to update src/node_version.cc?" >&2 ; \ + echo "" >&2 ; \ + exit 1 ; \ + fi git archive --format=tar --prefix=$(TARNAME)/ HEAD | tar xf - mkdir -p $(TARNAME)/doc/api cp doc/node.1 $(TARNAME)/doc/node.1 |