Browse files

Adding bin from trunk

  • Loading branch information...
1 parent 6022b08 commit 9ff4d35e673ce1d846a2a2235b2d0e6f75d3bbc2 (no author) committed Nov 8, 2007
Showing with 24 additions and 0 deletions.
  1. +24 −0 bin/techbook
View
24 bin/techbook
@@ -0,0 +1,24 @@
+#! /usr/bin/env ruby
+#--
+# PDF::Writer for Ruby.
+# http://rubyforge.org/projects/ruby-pdf/
+# Copyright 2003 - 2005 Austin Ziegler.
+#
+# Licensed under a MIT-style licence. See LICENCE in the main distribution
+# for full licensing information.
+#
+# $Id$
+#++
+begin
+ require 'pdf/techbook'
+rescue LoadError => le
+ if le.message =~ %r{pdf/techbook$}
+ root = File.dirname(File.dirname(File.expand_path(__FILE__)))
+ $LOAD_PATH.unshift(File.join(root, "lib"))
+ require 'pdf/techbook'
+ else
+ raise
+ end
+end
+
+PDF::TechBook.run(ARGV)

0 comments on commit 9ff4d35

Please sign in to comment.