2003/03/17 21:45:27
authormegacz <megacz@xwt.org>
Fri, 30 Jan 2004 06:56:46 +0000 (06:56 +0000)
committermegacz <megacz@xwt.org>
Fri, 30 Jan 2004 06:56:46 +0000 (06:56 +0000)
darcs-hash:20040130065646-2ba56-235f85f24e9a181cdb31569c312b52b77f25f036.gz

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 #######################################################################