Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Makefile: Refuse to build release from unclean repo

Root cause of an error during the 0.7.11 release
  • Loading branch information...
commit bdd57f075631381e5ccff74dd78055f206b65f4d 1 parent 145612c
@isaacs isaacs authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 Makefile
View
11 Makefile
@@ -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 \
Please sign in to comment.
Something went wrong with that request. Please try again.