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

Commit

Permalink
Makefile: Refuse to build release from unclean repo
Browse files Browse the repository at this point in the history
Root cause of an error during the 0.7.11 release
  • Loading branch information
isaacs committed Jun 16, 2012
1 parent 145612c commit bdd57f0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,17 @@ $(PKG):
--out $(PKG)

$(TARBALL): node out/doc
@if [ "$(shell git status --porcelain | egrep -v '^\?\? ')" = "" ]; then \
exit 0 ; \
else \
echo "" >&2 ; \
echo "The git repository is not clean." >&2 ; \
echo "Please commit changes before building release tarball." >&2 ; \
echo "" >&2 ; \
git status --porcelain | egrep -v '^\?\?' >&2 ; \
echo "" >&2 ; \
exit 1 ; \
fi
@if [ $(shell ./node --version) = "$(VERSION)" ]; then \
exit 0; \
else \
Expand Down

0 comments on commit bdd57f0

Please sign in to comment.