diff -ur tar2rubyscript-0.4.4.tar.gz/tar2rubyscript/SUMMARY tar2rubyscript-0.4.5.tar.gz/tar2rubyscript/SUMMARY
--- tar2rubyscript-0.4.4.tar.gz/tar2rubyscript/SUMMARY 2005-03-26 18:03:55.000000000 +0100
+++ tar2rubyscript-0.4.5.tar.gz/tar2rubyscript/SUMMARY 2005-03-26 18:03:51.000000000 +0100
@@ -0,0 +1 @@
+A Tool for Distributing Ruby Applications
diff -ur tar2rubyscript-0.4.4.tar.gz/tar2rubyscript/VERSION tar2rubyscript-0.4.5.tar.gz/tar2rubyscript/VERSION
--- tar2rubyscript-0.4.4.tar.gz/tar2rubyscript/VERSION 2005-03-26 18:03:55.000000000 +0100
+++ tar2rubyscript-0.4.5.tar.gz/tar2rubyscript/VERSION 2005-03-26 18:03:51.000000000 +0100
@@ -0,0 +1 @@
+0.4.5
diff -ur tar2rubyscript-0.4.4.tar.gz/tar2rubyscript/ev/oldandnewlocation.rb tar2rubyscript-0.4.5.tar.gz/tar2rubyscript/ev/oldandnewlocation.rb
--- tar2rubyscript-0.4.4.tar.gz/tar2rubyscript/ev/oldandnewlocation.rb 2005-01-19 00:06:27.000000000 +0100
+++ tar2rubyscript-0.4.5.tar.gz/tar2rubyscript/ev/oldandnewlocation.rb 2005-03-26 18:03:51.000000000 +0100
@@ -1,9 +1,9 @@
-temp = (ENV["TMPDIR"] or ENV["TMP"] or ENV["TEMP"] or "/tmp").gsub(/\\/, "/")
+temp = File.expand_path((ENV["TMPDIR"] or ENV["TMP"] or ENV["TEMP"] or "/tmp").gsub(/\\/, "/"))
dir = "#{temp}/oldandnewlocation.#{Process.pid}"
-ENV["OLDDIR"] = Dir.pwd unless ENV.include?("OLDDIR")
-ENV["NEWDIR"] = File.dirname($0) unless ENV.include?("NEWDIR")
-ENV["TEMPDIR"] = dir unless ENV.include?("TEMPDIR")
+ENV["OLDDIR"] = Dir.pwd unless ENV.include?("OLDDIR")
+ENV["NEWDIR"] = File.expand_path(File.dirname($0)) unless ENV.include?("NEWDIR")
+ENV["TEMPDIR"] = dir unless ENV.include?("TEMPDIR")
class Dir
def self.rm_rf(entry)
diff -ur tar2rubyscript-0.4.4.tar.gz/tar2rubyscript/init.rb tar2rubyscript-0.4.5.tar.gz/tar2rubyscript/init.rb
--- tar2rubyscript-0.4.4.tar.gz/tar2rubyscript/init.rb 2005-01-17 17:41:56.000000000 +0100
+++ tar2rubyscript-0.4.5.tar.gz/tar2rubyscript/init.rb 2005-01-29 19:41:14.000000000 +0100
@@ -123,13 +123,11 @@
if TARMODE and PRESERVE
archive = File.open(tarfile, "rb"){|f| [f.read].pack("m").split("\n").collect{|s| "# " + s}.join("\n")}
else
- begin
- tar = "tar"
- archive = IO.popen("#{tar} ch *", "rb"){|f| [f.read].pack("m").split("\n").collect{|s| "# " + s}.join("\n")}
- rescue
- tar = backslashes(newlocation("tar.exe"))
- archive = IO.popen("#{tar} ch *", "rb"){|f| [f.read].pack("m").split("\n").collect{|s| "# " + s}.join("\n")}
- end
+ what = "*"
+ what = "*.*" if windows?
+ tar = "tar"
+ tar = backslashes(newlocation("tar.exe")) if windows?
+ archive = IO.popen("#{tar} ch #{what}", "rb"){|f| [f.read].pack("m").split("\n").collect{|s| "# " + s}.join("\n")}
end
Dir.chdir(pdir)
diff -ur tar2rubyscript-0.4.4.tar.gz/tar2rubyscript/tarrubyscript.rb tar2rubyscript-0.4.5.tar.gz/tar2rubyscript/tarrubyscript.rb
--- tar2rubyscript-0.4.4.tar.gz/tar2rubyscript/tarrubyscript.rb 2005-01-17 21:20:28.000000000 +0100
+++ tar2rubyscript-0.4.5.tar.gz/tar2rubyscript/tarrubyscript.rb 2005-03-11 17:10:09.000000000 +0100
@@ -265,6 +265,7 @@
@archive = File.open(File.expand_path(__FILE__), "rb"){|f| f.read}.gsub(/\r/, "").split(/\n\n/)[-1].split("\n").collect{|s| s[2..-1]}.join("\n").unpack("m").shift
temp = ENV["TEMP"]
temp = "/tmp" if temp.nil?
+ temp = File.expand_path(temp)
@tempfile = "#{temp}/tar2rubyscript.f.#{Process.pid}.#{@@count += 1}"
end
@@ -294,6 +295,7 @@
@olddir = Dir.pwd
temp = ENV["TEMP"]
temp = "/tmp" if temp.nil?
+ temp = File.expand_path(temp)
@tempfile = "#{temp}/tar2rubyscript.f.#{Process.pid}.#{@@count += 1}"
@tempdir = "#{temp}/tar2rubyscript.d.#{Process.pid}.#{@@count}"
@@ -526,6 +528,8 @@
end
ENV["PATH"] = s
+ TAR2RUBYSCRIPT = true unless defined?(TAR2RUBYSCRIPT)
+
newlocation do
if __FILE__ == $0
$0.replace(File.expand_path("./init.rb"))