Cleanup
This commit is contained in:
		@@ -1,27 +1,5 @@
 | 
				
			|||||||
require 'squib'
 | 
					require 'squib'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
module OS
 | 
					 | 
				
			||||||
  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 default: [:deck, :rules]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
task :deck do
 | 
					task :deck do
 | 
				
			||||||
@@ -33,6 +11,5 @@ task rules: "_output/RULES.pdf"
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
file "_output/RULES.pdf" => ["Rules.md", "_output"] do |t|
 | 
					file "_output/RULES.pdf" => ["Rules.md", "_output"] do |t|
 | 
				
			||||||
  respaths = [".", "docs/"]
 | 
					  respaths = [".", "docs/"]
 | 
				
			||||||
  if OS.windows? then sep = ";" else sep = ":" end
 | 
					  sh "pandoc", "-o", t.name, t.source, "--resource-path=#{respaths.join(File::PATH_SEPARATOR)}"
 | 
				
			||||||
  sh "pandoc", "-o", t.name, t.source, "--resource-path=#{respaths.join(sep)}"
 | 
					 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
		Reference in New Issue
	
	Block a user