changeset 146:65f6f9d18fa1

Oops! I forgot that I need the undoctored output files in the book! Now they're named "*.lxo", instead of "*.out". Ugh.
author Bryan O'Sullivan <bos@serpentine.com>
date Tue, 06 Mar 2007 21:55:48 -0800
parents 4aecfa5c3ab0
children e985873a9d1a
files .hgignore en/99defs.tex en/Makefile en/examples/run-example
diffstat 4 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/.hgignore	Tue Mar 06 21:55:07 2007 -0800
+++ b/.hgignore	Tue Mar 06 21:55:48 2007 -0800
@@ -18,6 +18,7 @@
 *.ind
 *.lg
 *.lo[fgt]
+*.lxo
 *.orig
 */pdf/*.out
 *.pdf
--- a/en/99defs.tex	Tue Mar 06 21:55:07 2007 -0800
+++ b/en/99defs.tex	Tue Mar 06 21:55:48 2007 -0800
@@ -104,8 +104,7 @@
 \DefineVerbatimEnvironment{codesample2}{Verbatim}{frame=single,gobble=2,numbers=left,commandchars=\\\{\}}
 
 % Interaction from the examples directory.
-\newcommand{\interaction}[1]{\VerbatimInput[frame=single,numbers=left,commandchars=\\\{\}]{examples/#1.out}}
-
+\newcommand{\interaction}[1]{\VerbatimInput[frame=single,numbers=left,commandchars=\\\{\}]{examples/#1.lxo}}
 % Example code from the examples directory.
 \newcommand{\excode}[1]{\VerbatimInput[frame=single,numbers=left,commandchars=\\\{\}]{../examples/#1}}
 
--- a/en/Makefile	Tue Mar 06 21:55:07 2007 -0800
+++ b/en/Makefile	Tue Mar 06 21:55:48 2007 -0800
@@ -183,4 +183,4 @@
 		$(image-dot:%.dot=%.png) \
 		$(image-svg:%.svg=%.pdf) \
 		$(image-svg:%.svg=%.png) \
-		examples/*.{out,run} examples/.run build_id.tex
+		examples/*.{lxo,run} examples/.run build_id.tex
--- a/en/examples/run-example	Tue Mar 06 21:55:07 2007 -0800
+++ b/en/examples/run-example	Tue Mar 06 21:55:48 2007 -0800
@@ -279,7 +279,7 @@
         errfp = open(errname, 'w+')
         for line in open(tmpname):
             errfp.write(mangle_re.sub('', line))
-        os.unlink(tmpname)
+        os.rename(tmpname, base + '.lxo')
         errfp.seek(0)
         try:
             oldfp = open(oldname)