Skip to content

Commit cbcafff

Browse files
committed
[Makefile] Whine if we try to release something impure.
1 parent ecdaa7f commit cbcafff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ commit-patch.html: commit-patch
2727
release: commit-patch-$(VERSION).tar.gz
2828

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

0 commit comments

Comments
 (0)