Changeset 547:fd80af68bedc for bin

Show
Ignore:
Timestamp:
04/06/08 00:29:46 (8 months ago)
Author:
Sean Russell <ser@…>
Branch:
default
Message:

Fixes more 1.9 - related syntax
Changes ftools to FileUtils?

Location:
bin
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • bin/info.rb

    r378 r547  
    1818 
    1919k = case ARGV[0] 
    20     when /^t/: 'tag' 
    21     when /^u/: 'url' 
    22     when /^r/: 'revision' 
    23     when /^a/: 'author' 
    24     when /^d/: 'date' 
     20    when /^t/ then 'tag' 
     21    when /^u/ then 'url' 
     22    when /^r/ then 'revision' 
     23    when /^a/ then 'author' 
     24    when /^d/ then 'date' 
    2525    else 
    2626      puts %Q{Unrecognized command "#{ARGV[0]}"} 
  • bin/install.rb

    r282 r547  
    3030require 'getoptlong' 
    3131require 'rbconfig' 
    32 require 'ftools' 
     32require 'FileUtils' 
    3333require 'find' 
    3434 
    3535opts = GetoptLong.new( [ '--uninstall', '-u',           GetoptLong::NO_ARGUMENT], 
    36                                                                                         [ '--destdir', '-d', GetoptLong::REQUIRED_ARGUMENT ], 
    37                                                                                         [ '--target', '-t', GetoptLong::REQUIRED_ARGUMENT ], 
    38                                                                                         [ '--concurrent', '-c', GetoptLong::NO_ARGUMENT], 
    39                                                                                         [ '--help', '-h', GetoptLong::NO_ARGUMENT], 
    40                                                                                         [ '--noop', '-n', GetoptLong::NO_ARGUMENT]) 
     36                                                [ '--destdir', '-d', GetoptLong::REQUIRED_ARGUMENT ], 
     37                                                [ '--target', '-t', GetoptLong::REQUIRED_ARGUMENT ], 
     38                                                [ '--concurrent', '-c', GetoptLong::NO_ARGUMENT], 
     39                                                [ '--help', '-h', GetoptLong::NO_ARGUMENT], 
     40                                                [ '--noop', '-n', GetoptLong::NO_ARGUMENT]) 
    4141 
    4242 
  • bin/repackage.rb

    r43 r547  
    33Dir.chdir ".." if Dir.pwd =~ /bin.?$/ 
    44 
    5 require "ftools" 
     5require "FileUtils" 
    66 
    77def copy_recursively( dir_name, dest )