From: Mats Bengtsson Date: Mon, 7 Jun 2004 11:10:19 +0000 (+0000) Subject: * scripts/lilypond-book.py (latex_filter_cmd): Use a temporary X-Git-Tag: release/2.2.3~4 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=d6d49849199f567821a08e1664417736cb991e2e;p=lilypond.git * 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. --- diff --git a/ChangeLog b/ChangeLog index 4fdb077825..b9e9bdee2b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-06-07 Mats Bengtsson + + * 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 * Documentation/user/notation.itely (Instrument transpositions): diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py index 614cef59a4..610f81815c 100644 --- a/scripts/lilypond-book.py +++ b/scripts/lilypond-book.py @@ -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 = {}