From 629e30484a1806fb402b537012d5ffe5264215db Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 10 Jan 2022 16:13:33 -0300 Subject: _plugins/generate-lilypond.rb: Build lilypond files inside Makefile instead of Jekyll --- _plugins/generate-lilypond.rb | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 _plugins/generate-lilypond.rb (limited to '_plugins') diff --git a/_plugins/generate-lilypond.rb b/_plugins/generate-lilypond.rb deleted file mode 100644 index c0c1a13..0000000 --- a/_plugins/generate-lilypond.rb +++ /dev/null @@ -1,28 +0,0 @@ -module Jekyll - class LilyPondGenerator < Generator - safe true - priority :high - - def generate(site) - site.config['musics'].each do |music| - ref = music['ref'] - file = "music/#{ref}" - ly = "#{file}.ly" - pdf = "#{file}.pdf" - unless File.exist? pdf then - puts "Missing '#{pdf}', generating..." - puts `lilypond -o #{file} #{ly}` - site.static_files << Jekyll::StaticFile.new(site, site.source, '', pdf) - end - - ogg = "#{file}.ogg" - midi = "#{file}.midi" - unless File.exist? ogg then - puts "Missing '#{ogg}', generating..." - puts `timidity -Ov #{midi}` - site.static_files << Jekyll::StaticFile.new(site, site.source, '', ogg) - end - end - end - end -end -- cgit v1.2.3