]> git.donarmstrong.com Git - lilypond.git/commitdiff
* scripts/lilypond-book.py (latex_filter_cmd): Use a temporary
authorMats Bengtsson <mats.bengtsson@s3.kth.se>
Mon, 7 Jun 2004 11:10:19 +0000 (11:10 +0000)
committerMats Bengtsson <mats.bengtsson@s3.kth.se>
Mon, 7 Jun 2004 11:10:19 +0000 (11:10 +0000)
file since 'latex "\\nonstopmode \input /dev/stdin"' doesn't work
in Cygwin. Warning: ugly hard coded file name used.

ChangeLog
scripts/lilypond-book.py

index 4fdb077825ebbcb1933e00d5b9f88a9fc2b09435..b9e9bdee2bafa9ee47c2ba84b34d15b71359f909 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-06-07  Mats Bengtsson  <mabe@drongo.s3.kth.se>
+
+       * scripts/lilypond-book.py (latex_filter_cmd): Use a temporary
+       file since 'latex "\\nonstopmode \input /dev/stdin"' doesn't work
+       in Cygwin. Warning: ugly hard coded file name used.
+
 2004-06-04  Mats Bengtsson  <mabe@drongo.s3.kth.se>
 
        * Documentation/user/notation.itely (Instrument transpositions):
index 614cef59a401ca0d80cbf19d39d36d1ac01577b0..610f81815cf7d6969f3a5fc5549669695964e9f0 100644 (file)
@@ -101,7 +101,10 @@ if '@bindir@' == ('@' + 'bindir@') or not os.path.exists (lilypond_binary):
 use_hash_p = 1
 format = 0
 output_name = 0
-latex_filter_cmd = 'latex "\\nonstopmode \input /dev/stdin"'
+# Ugh, hard coded file name! Unfortunately tempfile.mktemp doesn't 
+# give a useful file in Cygwin. Also, the original version, 
+# 'latex "\\nonstopmode \input /dev/stdin"' doesn't work in Cygwin.
+latex_filter_cmd = 'cat > lily-tmp.tex; latex "\\nonstopmode \input lily-tmp.tex";rm lily-tmp.tex'
 filter_cmd = 0
 process_cmd = lilypond_binary
 default_ly_options = {}