diff options
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/asciidoctor-pdf | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/asciidoctor-pdf b/bin/asciidoctor-pdf index 083860bc..6649aaf7 100755 --- a/bin/asciidoctor-pdf +++ b/bin/asciidoctor-pdf @@ -1,6 +1,10 @@ #!/usr/bin/env ruby -require_relative '../lib/asciidoctor-pdf' +if File.exist?(asciidoctor_pdf = (File.expand_path '../../lib/asciidoctor-pdf', __FILE__)) + require asciidoctor_pdf +else + require 'asciidoctor-pdf' +end require 'asciidoctor/cli' options = Asciidoctor::Cli::Options.new backend: 'pdf', header_footer: true |
