Permalink
Browse files

initial commit.

  • Loading branch information...
0 parents commit 4f30fba0d5689d12fd68ac4969594e2114749bda @zakird committed Feb 10, 2010
@@ -0,0 +1,13 @@
+#!/usr/bin/ruby
+
+if RUBY_PLATFORM =~ /linux/
+ executable = 'wkhtmltopdf_linux_386'
+elsif RUBY_PLATFORM =~ /darwin/
+ executable = 'wkhtmltopdf_darwin_386'
+else
+ raise "Invalid platform. Must be running linux or intel-based Mac OS."
+end
+
+executable = File.join(File.dirname(__FILE__), executable)
+system(executable + " " + $*.join(" "))
+
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,20 @@
+require 'rubygems'
+require 'rake/packagetask'
+require 'rake/gempackagetask'
+
+spec = Gem::Specification.new do |s|
+ s.name = "wkhtmltopdf-binary"
+ s.version = "0.1.7"
+ s.author = "Research Information Systems, The University of Iowa"
+ s.email = "vpr-ris-developers@iowa.uiowa.edu"
+ s.platform = Gem::Platform::RUBY
+ s.summary = "Provides binaries for WKHTMLTOPDF project in an easily accessible package."
+ s.files = FileList["{bin}/**/*"].to_a
+ s.has_rdoc = false
+ s.executables << "wkhtmltopdf"
+ s.require_path = '.'
+end
+
+Rake::GemPackageTask.new(spec) do |pkg|
+ pkg.need_tar = true
+end

0 comments on commit 4f30fba

Please sign in to comment.