summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-02-07 15:41:21 -0800
committerisaacs <i@izs.me>2012-08-04 10:13:06 -0700
commit2a1f022d207c1025a994a34d416fbaa331ca2b44 (patch)
treefc252cc4067ef56b87aae4d3a86ee99fe2f86314
parent2dcaef6efa13242cff9fc5ac9938e2912d2c0ace (diff)
downloadnode-2a1f022d207c1025a994a34d416fbaa331ca2b44.tar.gz
Check the version before building tarball
I keep forgetting to do this. It's such a stupid thing.
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 49a18787d..15c65c158 100644
--- a/Makefile
+++ b/Makefile
@@ -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