Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add code to allow command-line execution for debugging

  • Loading branch information...
commit 81f09e9bb8518dcd4a6d2066c10b4e5ae2e1409d 1 parent c2fa7de
tim authored
Showing with 13 additions and 7 deletions.
  1. +13 −7 post-install.rb
View
20 post-install.rb
@@ -3,14 +3,20 @@
require 'ftools'
require 'find'
-$docdir = nil
+if defined?(ToplevelInstaller) && self.class == ToplevelInstaller
+ $docdir = nil
-# Where to install the documentation
-def docdir
- return $docdir if $docdir
- dir = get_config('doc-dir')+File::SEPARATOR
- dir.sub!(/\A$prefix/, get_config('prefix'))
- $docdir = dir
+ # Where to install the documentation
+ def docdir
+ return $docdir if $docdir
+ dir = get_config('doc-dir')+'/'
+ dir.sub!(/\A$prefix/, get_config('prefix'))
+ $docdir = dir
+ end
+else
+ def docdir
+ return ARGV[0]
+ end
end
puts "\npost-install.rb: installing documentation..."
Please sign in to comment.
Something went wrong with that request. Please try again.