Skip to content

Commit

Permalink
[Makefile] Whine if we try to release something impure.
Browse files Browse the repository at this point in the history
  • Loading branch information
caldwell committed Sep 22, 2014
1 parent ecdaa7f commit cbcafff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ commit-patch.html: commit-patch
release: commit-patch-$(VERSION).tar.gz

commit-patch-$(VERSION).tar.gz: $(ALL) Makefile
if ! git diff --quiet -- $^; then tput setab 1; tput setaf 3; /bin/echo -n 'WARNING: Directory is not clean!'; tput sgr0; echo; fi
mkdir commit-patch-$(VERSION)
rsync -a $^ commit-patch-$(VERSION)
mv -f commit-patch-$(VERSION)/commit-patch.fat commit-patch-$(VERSION)/commit-patch
Expand Down

0 comments on commit cbcafff

Please sign in to comment.