Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

root/tags/RELEASE_1_4_7/install.rb

Revision 557, 1.2 kB (checked in by nahi, 6 years ago)

Added WSDL4R installation.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to author date id revision
Line 
1 #!/usr/bin/env ruby
2
3 require 'rbconfig'
4 require 'ftools'
5 require '_installedFiles'
6
7 include Config
8
9 RV = CONFIG["MAJOR"] + "." + CONFIG["MINOR"]
10 DSTPATH = CONFIG["sitedir"] + "/" +  RV
11
12 $installed = InstalledFiles.new
13
14 def join( *arg )
15   File.join( *arg )
16 end
17
18 def install( from, to )
19   toPath = File.catname( from, to )
20   unless FileTest.exist?( toPath ) and File.compare( from, toPath )
21     File.install( from, toPath, 0644, true )
22     $installed << InstalledFile.new( toPath )
23   end
24 end
25
26 def installDir( from, to )
27   unless FileTest.directory?( from )
28     raise RuntimeError.new( "'#{ from }' not found." )
29   end
30   File.mkpath( to, true )
31   Dir[ join( from, '*.rb' ) ].each do | name |
32     install( name, to )
33   end
34 end
35
36 begin
37   installDir( join( 'lib', 'soap' ), join( DSTPATH, 'soap' ))
38   installDir( join( 'lib', 'wsdl' ), join( DSTPATH, 'wsdl' ))
39   installDir( join( 'lib', 'wsdl', 'xmlSchema' ), join( DSTPATH, 'wsdl', 'xmlSchema' ))
40   installDir( join( 'lib', 'wsdl', 'soap' ), join( DSTPATH, 'wsdl', 'soap' ))
41   installDir( "redist", DSTPATH )
42   installDir( join( 'redist', 'soap' ), join( DSTPATH, 'soap' ))
43
44   $installed.dump
45
46   puts "install succeed!"
47
48 rescue
49   puts "install failed!"
50   puts $!
51
52 end
Note: See TracBrowser for help on using the browser.