Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Check the version before building tarball
I keep forgetting to do this.  It's such a stupid thing.
  • Loading branch information
isaacs committed Feb 7, 2012
1 parent 986785c commit 349cab0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Makefile
Expand Up @@ -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
Expand Down

0 comments on commit 349cab0

Please sign in to comment.