fixed bug 362: preprocessor not preserving line numbers
[org.ibex.core.git] / Makefile
index 19f1e40..4e9dc64 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -260,9 +260,9 @@ dist: compile
 propose-patch:
        @darcs push --and-apply --edit-description -o .darcspatch -T patches@xwt.org http://darcs.ibex.org/ibex/
        @(echo "To: patches@xwt.org";\
-        SUB=`grep -A2 New.patches .darcspatch | tail -n 1 | cut -b 2-`;\
+        SUB=`grep -A10000 New.patches .darcspatch | grep '^\\[' | cut -b 2- | tr \\\n , | sed s_,_,\ _g | sed "s_, *\\$$__"`;\
         echo "Subject: $$SUB";\
         echo;\
-        cat .darcspatch) | cat > /tmp/foo #/usr/sbin/sendmail -bm -f $(USER)@xwt.org patches@xwt.org;
+        cat .darcspatch) | /usr/sbin/sendmail -bm -f $(USER)@xwt.org patches@xwt.org;
        @rm .darcspatch