public
Fork of ironruby/ironruby
Description: Microsoft's Ruby language compiler that is built on top of the Dynamic Language Runtime.
Homepage: http://ironruby.net
Clone URL: git://github.com/shri/ironruby.git
shri (author)
Fri Apr 10 15:39:36 -0700 2009
commit  5e8c6b232a3c952985adbf1b9cda5c456d503cea
tree    fc462aff498d8efa1ed5050a40f0e55fc9fc418d
parent  b2bda3cb06176b89cb2a36938f7522f813877c59
ironruby / Merlin / Main / Languages / Ruby / Scripts / GitDiff.rb
100644 12 lines (9 sloc) 0.35 kb
1
2
3
4
5
6
7
8
9
10
11
12
require "ftools"
 
path_of_file_in_branch = ARGV[0]
old_file = ARGV[1]
new_file = ARGV[2]
old_files_dir = ARGV[3]
new_files_dir = ARGV[4]
 
file_name = File.basename(path_of_file_in_branch)
 
File.copy(old_file, old_files_dir + "\\" + file_name) if old_file != "/dev/null"
File.copy(new_file, new_files_dir + "\\" + file_name) if new_file != "/dev/null"