fixed bug 362: preprocessor not preserving line numbers
[org.ibex.core.git] / Makefile
index 5f0b4db..4e9dc64 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -100,7 +100,7 @@ build/java/org/xwt/mips/%:
 build/class/org/ibex/translators/MIPSApps.class: build/mips/mipsapps.mips .jikes
        mkdir -p build/java/org/ibex/translators
        @echo -e "\n\033[1mtranslating        .mips -> .java:  $<\033[0m"
-       (echo -e 'package org.xwt.translators;\n';                           \
+       (echo -e 'package org.ibex.translators;\n';                           \
         java -Xint -cp upstream/mips/build org.xwt.mips.Compiler MIPSApps build/mips/mipsapps.mips) \
         | sed 's,//.*$$,,;'| tr -d '\n' > build/java/org/ibex/translators/MIPSApps.java
        @echo -e "\n\033[1mcompiling          .java -> .class: $<\033[0m"
@@ -260,7 +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";\
-        echo "Subject: "`grep -A2 \"New patches\" .darcspatch | tail -n 1 | cut -b 2-`;\
-        cat .darcspatch) | /usr/sbin/sendmail -bm -f $(USER)@xwt.org patches@xwt.org
+        SUB=`grep -A10000 New.patches .darcspatch | grep '^\\[' | cut -b 2- | tr \\\n , | sed s_,_,\ _g | sed "s_, *\\$$__"`;\
+        echo "Subject: $$SUB";\
+        echo;\
+        cat .darcspatch) | /usr/sbin/sendmail -bm -f $(USER)@xwt.org patches@xwt.org;
        @rm .darcspatch