From 349cab0b489d3bbb2966bf401b8af50240bf8657 Mon Sep 17 00:00:00 2001 From: isaacs Date: Tue, 7 Feb 2012 15:41:21 -0800 Subject: [PATCH] Check the version before building tarball I keep forgetting to do this. It's such a stupid thing. --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 8b4a15943..0db2d3574 100644 --- a/Makefile +++ b/Makefile @@ -178,6 +178,15 @@ $(PKG): --out $(PKG) $(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 cp doc/node.1 $(TARNAME)/doc/node.1