[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Copy dll's from the correct directory for Windows Ruby binding tests

From: Joe Swatosh <joe.swatosh_at_gmail.com>
Date: 2006-12-31 20:17:00 CET

Hi All,

Fiddly little fix.

[[[

Copy the dll's from the correct directory to the .ext directory for test.

* subversion/bindings/swig/ruby/test/run-test.rb
  Copy the dlls from the correct directory

]]]

Index: subversion/bindings/swig/ruby/test/run-test.rb
===================================================================
--- subversion/bindings/swig/ruby/test/run-test.rb (revision 22844)
+++ subversion/bindings/swig/ruby/test/run-test.rb (working copy)
@@ -15,7 +15,8 @@
 if /cygwin|mingw|mswin32|bccwin32/.match(RUBY_PLATFORM)
   ext_svn_ext_dir = File.join(ext_svn_dir, "ext")
   FileUtils.mkdir_p(ext_svn_ext_dir)
- FileUtils.cp(Dir.glob(File.join(base_dir, "*.dll"), ext_svn_ext_dir))
+ dlls_dir = base_dir.split(File::SEPARATOR).insert(-5,'Release').join(File::SEPARATOR)
+ FileUtils.cp(Dir.glob(File.join(dlls_dir, "*.dll")), ext_svn_ext_dir)
 else
   ENV["PATH"] = "#{File.join(top_dir, 'subversion',
'svnserve')}:#{ENV['PATH']}"
   FileUtils.ln_sf(File.join(base_dir, ".libs"), File.join(ext_svn_dir, "ext"))

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Dec 31 20:17:12 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.