# Install XYZ program in ___ (a non-ruby directory) # usage: # % ruby install.rb require 'fileutils' include FileUtils::Verbose # Echo file commands #include FileUtils::DryRun # Use this for testing # Source control utilities (checkin, checkout) require 'dev/sccs' include SCCS TARGET_DIR = "...." FILE = "...." TARGET_PATH = "#{TARGET_DIR}/#{FILE}" curr_date = Time::now.strftime("%d %b %Y") # 5 Jun 2006 checkout TARGET_PATH cp(FILE, TARGET_DIR) checkin(TARGET_PATH, "Updated on #{curr_date}") puts "" puts "#{FILE} copied to #{TARGET_DIR}" puts ""