Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
nahi
committed
Oct 21, 2002
1 parent
ca8b596
commit 863c5ad
Showing
7 changed files
with
1,624 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Oops, something went wrong.