Sha256: f083c13a8bbdd72fe37df746b287876b6a476e7c3e62439cd4ac1338958e26d0
Contents?: true
Size: 694 Bytes
Versions: 76
Compression:
Stored size: 694 Bytes
Contents
require 'find' install_path = "-\"!:\\Data\\Rho" dir = File.expand_path( File.dirname(File.expand_path(__FILE__)) + "/../bin/RhoBundle") puts "Rhodes root directory..." puts dir pkg_file_path = File.expand_path( File.dirname(File.expand_path(__FILE__)) + "/../rhodes/sis") + "/rhodes_tmp.pkg" puts "Pkg file path..." puts pkg_file_path pkg_file = File.open(pkg_file_path, File::WRONLY|File::APPEND) Find.find(dir) do |path| if FileTest.directory?(path) next else rel_file_path = path rel_file_path = rel_file_path.gsub(dir, "") line = "\"" + path.tr("/", "\\") + "\" " + install_path + rel_file_path.tr("/", "\\") + "\"" pkg_file.puts( line ) end end
Version data entries
76 entries across 76 versions & 1 rubygems