2003/03/17 21:45:27
[org.ibex.core.git] / Makefile
index d0454b0..c1fdeb4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -97,6 +97,28 @@ update-build:
        cvs commit -m 'this comment should not appear in CHANGES' next.build CHANGES
        echo committed.
 
+propose-patch:
+       @echo -n "Please type a one-line description of this bug: "; \
+       read A; \
+       echo; \
+       echo "Please type any additional comments that explain this patch."; \
+        echo "If this patch fixes a bug, include a link to bugs.xwt.org."; \
+        echo "When you are done, press control-d on a new line."; \
+       echo; \
+       (       echo -e "HELO patcher"; \
+               echo -e "MAIL FROM:$(USER)@xwt.org"; \
+               echo -e "RCPT TO: patches@xwt.org"; \
+               echo -e "DATA"; \
+               echo -e "From: $(USER)@xwt.org"; \
+               echo -e "To: patches@xwt.org"; \
+               echo -e "Subject: proposed patch to $(this_branch): $$A"; \
+               echo -e ""; \
+               cat; \
+               echo; \
+               cvs diff -Bud; \
+               echo .; \
+       ) > .message
+       bash -c "cat .message > /dev/tcp/mail.xwt.org/25"     # /dev/tcp is faked by bash; not part of the os
 
 ## GCJ-Derived Platforms #######################################################################