Gabriel Dos Reis wrote:
> Waldek Hebisch <[EMAIL PROTECTED]> writes:
> 
> | There are more problems: apparently noweb can not correctly handle
> | files which have underscores in their names. For example latex run
> | on src/hyper/parse_aux.tex gives the following errors (I removed
> | other messages which are caused by the two errors):
> 
> I know of that one.  And, actually, my recent tweak to dvi-ax is
> supposed to be followed up by a renaming of parse_xxx to parse-xxx.
> I did not have time to commit it.
>

Inspired by noweb FAQ in am testing the following patch -- tohether
with previous patch it allowed me to run 'make dvi' with only two
problems (Rosetta.pamphlet and more-rules.mk). 'more-rules.mk' is
build only during main build, so for standalone 'make dvi' (without
previous build) I had to add it by hand. Now I am tesing full build.

diff -ru build-improvements.nn2/src/hyper/parse_aux.pamphlet 
build-improvements.nn/src/hyper/parse_aux.pamphlet
--- build-improvements.nn2/src/hyper/parse_aux.pamphlet 2006-10-23 
01:38:47.000000000 +0200
+++ build-improvements.nn/src/hyper/parse_aux.pamphlet  2006-10-23 
03:08:28.000000000 +0200
@@ -20,7 +20,7 @@
 
 #endif
 @
-\section{parse_aux.c}
+\section{parse\_aux.c}
 <<parse_aux.c>>=
 #define _PARSE_AUX_C
 #include "useproto.h"
diff -ru build-improvements.nn2/src/scripts/document.in 
build-improvements.nn/src/scripts/document.in
--- build-improvements.nn2/src/scripts/document.in      2006-10-23 
01:38:47.000000000 +0200
+++ build-improvements.nn/src/scripts/document.in       2006-10-23 
02:50:15.000000000 +0200
@@ -100,7 +100,8 @@
 
 if test x$do_weave = xyes; then
     file=`basename $1 .pamphlet`
-    $weave -delay $1 > $file.tex
+    $weave -delay -filter 'sed "/[EMAIL PROTECTED] /s/_/\\\\_/g;/[EMAIL 
PROTECTED] /s/_/\\\\_/g"' \
+              $1 > $file.tex
     if test x$do_latex != xyes; then
        exit 0;
     fi


-- 
                              Waldek Hebisch
[EMAIL PROTECTED] 



_______________________________________________
Axiom-developer mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/axiom-developer

Reply via email to