Skip to content

Commit

Permalink
Initial revision
Browse files Browse the repository at this point in the history
  • Loading branch information
nahi committed Oct 21, 2002
1 parent ca8b596 commit 863c5ad
Show file tree
Hide file tree
Showing 7 changed files with 1,624 additions and 0 deletions.
32 changes: 32 additions & 0 deletions install.rb
@@ -0,0 +1,32 @@
#!/usr/bin/env ruby
#
# Installer for http-access2
# Copyright (C) 2001 Michael Neumann and NAKAMURA, Hiroshi.

require "rbconfig"
require "ftools"
include Config

RV = CONFIG["MAJOR"] + "." + CONFIG["MINOR"]
DSTPATH = CONFIG["sitedir"] + "/" + RV

begin
unless FileTest.directory?( "lib/http-access2" )
raise RuntimeError.new( "'lib/http-access2' not found." )
end

File.mkpath DSTPATH + "/http-access2", true
Dir["lib/http-access2/*.rb"].each do |name|
File.install name, "#{DSTPATH}/http-access2/#{File.basename name}", 0644, true
end

Dir["lib/*.rb"].each do |name|
File.install name, "#{DSTPATH}/#{File.basename name}", 0644, true
end

rescue
puts "install failed!"
puts $!
else
puts "install succeed!"
end

0 comments on commit 863c5ad

Please sign in to comment.