OLD | NEW |
1 #!@TARGET_PYTHON@ | 1 #!@TARGET_PYTHON@ |
2 | 2 |
3 # This file is part of LilyPond, the GNU music typesetter. | 3 # This file is part of LilyPond, the GNU music typesetter. |
4 # | 4 # |
5 # LilyPond is free software: you can redistribute it and/or modify | 5 # LilyPond is free software: you can redistribute it and/or modify |
6 # it under the terms of the GNU General Public License as published by | 6 # it under the terms of the GNU General Public License as published by |
7 # the Free Software Foundation, either version 3 of the License, or | 7 # the Free Software Foundation, either version 3 of the License, or |
8 # (at your option) any later version. | 8 # (at your option) any later version. |
9 # | 9 # |
10 # LilyPond is distributed in the hope that it will be useful, | 10 # LilyPond is distributed in the hope that it will be useful, |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 \[ | 457 \[ |
458 \s*(?P<options>.*?)\s* | 458 \s*(?P<options>.*?)\s* |
459 \])?\s*{ | 459 \])?\s*{ |
460 (?P<code>.*?) | 460 (?P<code>.*?) |
461 })''', | 461 })''', |
462 | 462 |
463 'lilypond_block': | 463 'lilypond_block': |
464 r'''(?smx) | 464 r'''(?smx) |
465 ^[^%\n]*? | 465 ^[^%\n]*? |
466 (?P<match> | 466 (?P<match> |
467 \\begin\s*( | 467 \\begin\s*(?P<env>{lilypond}\s*)?( |
468 \[ | 468 \[ |
469 \s*(?P<options>.*?)\s* | 469 \s*(?P<options>.*?)\s* |
470 \])?\s*{lilypond} | 470 \])?(?(env)|\s*{lilypond}) |
471 (?P<code>.*?) | 471 (?P<code>.*?) |
472 ^[^%\n]*? | 472 ^[^%\n]*? |
473 \\end\s*{lilypond})''', | 473 \\end\s*{lilypond})''', |
474 | 474 |
475 'lilypond_file': | 475 'lilypond_file': |
476 r'''(?smx) | 476 r'''(?smx) |
477 ^[^%\n]*? | 477 ^[^%\n]*? |
478 (?P<match> | 478 (?P<match> |
479 \\lilypondfile\s*( | 479 \\lilypondfile\s*( |
480 \[ | 480 \[ |
(...skipping 1706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2187 final_output_file = os.path.join (global_options.output_dir, | 2187 final_output_file = os.path.join (global_options.output_dir, |
2188 base_file_name | 2188 base_file_name |
2189 + '.%s' % global_options.format) | 2189 + '.%s' % global_options.format) |
2190 | 2190 |
2191 os.chdir (original_dir) | 2191 os.chdir (original_dir) |
2192 file (dep_file, 'w').write ('%s: %s' | 2192 file (dep_file, 'w').write ('%s: %s' |
2193 % (final_output_file, ' '.join (inputs))) | 2193 % (final_output_file, ' '.join (inputs))) |
2194 | 2194 |
2195 if __name__ == '__main__': | 2195 if __name__ == '__main__': |
2196 main () | 2196 main () |
OLD | NEW |