hgbook
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.
Now they're named "*.lxo", instead of "*.out". Ugh.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Tue Mar 06 21:55:48 2007 -0800 (2007-03-06) |
parents | 4aecfa5c3ab0 |
children | e985873a9d1a |
files | .hgignore en/99defs.tex en/Makefile en/examples/run-example |
line diff
1.1 --- a/.hgignore Tue Mar 06 21:55:07 2007 -0800 1.2 +++ b/.hgignore Tue Mar 06 21:55:48 2007 -0800 1.3 @@ -18,6 +18,7 @@ 1.4 *.ind 1.5 *.lg 1.6 *.lo[fgt] 1.7 +*.lxo 1.8 *.orig 1.9 */pdf/*.out 1.10 *.pdf
2.1 --- a/en/99defs.tex Tue Mar 06 21:55:07 2007 -0800 2.2 +++ b/en/99defs.tex Tue Mar 06 21:55:48 2007 -0800 2.3 @@ -104,8 +104,7 @@ 2.4 \DefineVerbatimEnvironment{codesample2}{Verbatim}{frame=single,gobble=2,numbers=left,commandchars=\\\{\}} 2.5 2.6 % Interaction from the examples directory. 2.7 -\newcommand{\interaction}[1]{\VerbatimInput[frame=single,numbers=left,commandchars=\\\{\}]{examples/#1.out}} 2.8 - 2.9 +\newcommand{\interaction}[1]{\VerbatimInput[frame=single,numbers=left,commandchars=\\\{\}]{examples/#1.lxo}} 2.10 % Example code from the examples directory. 2.11 \newcommand{\excode}[1]{\VerbatimInput[frame=single,numbers=left,commandchars=\\\{\}]{../examples/#1}} 2.12
3.1 --- a/en/Makefile Tue Mar 06 21:55:07 2007 -0800 3.2 +++ b/en/Makefile Tue Mar 06 21:55:48 2007 -0800 3.3 @@ -183,4 +183,4 @@ 3.4 $(image-dot:%.dot=%.png) \ 3.5 $(image-svg:%.svg=%.pdf) \ 3.6 $(image-svg:%.svg=%.png) \ 3.7 - examples/*.{out,run} examples/.run build_id.tex 3.8 + examples/*.{lxo,run} examples/.run build_id.tex
4.1 --- a/en/examples/run-example Tue Mar 06 21:55:07 2007 -0800 4.2 +++ b/en/examples/run-example Tue Mar 06 21:55:48 2007 -0800 4.3 @@ -279,7 +279,7 @@ 4.4 errfp = open(errname, 'w+') 4.5 for line in open(tmpname): 4.6 errfp.write(mangle_re.sub('', line)) 4.7 - os.unlink(tmpname) 4.8 + os.rename(tmpname, base + '.lxo') 4.9 errfp.seek(0) 4.10 try: 4.11 oldfp = open(oldname)