Compare commits

..

No commits in common. "9c9fe3e37d7f55ea987b10d977be00e467d8882f" and "7cbbb4432dece9c285c621862d1dd2f4351f02dc" have entirely different histories.

View File

@ -1,38 +1,7 @@
require 'squib' require 'squib'
module OS task default: [:deck]
def OS.windows?
(/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil
end
def OS.mac?
(/darwin/ =~ RUBY_PLATFORM) != nil
end
def OS.unix?
!OS.windows?
end
def OS.linux?
OS.unix? and not OS.mac?
end
def OS.jruby?
RUBY_ENGINE == 'jruby'
end
end
task default: [:deck, :rules]
task :deck do task :deck do
load 'deck.rb' load 'deck.rb'
end end
desc 'Build the rules PDF'
task rules: "_output/RULES.pdf"
file "_output/RULES.pdf" => ["Rules.md", "_output"] do |t|
respaths = [".", "docs/"]
if OS.windows? then sep = ";" else sep = ":" end
sh "pandoc", "-o", t.name, t.source, "--resource-path=#{respaths.join(sep)}"
end