[−][src]Function lilypond::compile
pub fn compile(input_file: &'static str) -> bool
Compiles a .ly
source file
Usage
use lilypond::compile; let input = "test.ly"; let output = "test.pdf"; // Create test input file fsutils::write_file(input, "{ c e g }"); if compile(input) { // LilyPond is probably installed assert_eq!(fsutils::path_exists(output), true); } else { // LilyPond is not installed and we will // not get an output assert_eq!(fsutils::path_exists(output), false); } // Cleanup fsutils::rm(input); fsutils::rm(output);