~ubuntu-branches/ubuntu/trusty/ruby1.9/trusty

« back to all changes in this revision

Viewing changes to lib/shell/command-processor.rb

  • Committer: Bazaar Package Importer
  • Author(s): Stephan Hermann
  • Date: 2008-01-24 11:42:29 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20080124114229-jw2f87rdxlq6gp11
Tags: 1.9.0.0-2ubuntu1
* Merge from debian unstable, remaining changes:
  - Robustify check for target_os, fixing build failure on lpia.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#
2
2
#   shell/command-controller.rb - 
3
3
#       $Release Version: 0.7 $
4
 
#       $Revision: 12124 $
5
 
#       $Date: 2007-03-23 00:25:58 +0900 (金, 23  3月 2007) $
 
4
#       $Revision: 14610 $
 
5
#       $Date: 2007-12-24 23:09:57 +0900 (Mon, 24 Dec 2007) $
6
6
#       by Keiju ISHITSUKA(keiju@ruby-lang.org)
7
7
#
8
8
# --
11
11
#
12
12
 
13
13
require "e2mmap"
14
 
require "ftools"
15
14
require "thread"
16
15
 
17
16
require "shell/error"
589
588
      def_builtin_commands(FileTest, 
590
589
                   FileTest.singleton_methods(false).collect{|m| [m, ["FILENAME"]]})
591
590
 
592
 
#       # method related ftools
593
 
#       normal_delegation_ftools_methods = [
594
 
#       ["syscopy", ["FILENAME_FROM", "FILENAME_TO"]],
595
 
#       ["copy", ["FILENAME_FROM", "FILENAME_TO"]],
596
 
#       ["move", ["FILENAME_FROM", "FILENAME_TO"]],
597
 
#       ["compare", ["FILENAME_FROM", "FILENAME_TO"]],
598
 
#       ["safe_unlink", ["*FILENAMES"]],
599
 
#       ["makedirs", ["*FILENAMES"]],
600
 
#       #    ["chmod", ["mode", "*FILENAMES"]],
601
 
#       ["install", ["FILENAME_FROM", "FILENAME_TO", "mode"]],
602
 
#       ]
603
 
#       def_builtin_commands(File,
604
 
#                  normal_delegation_ftools_methods)
605
 
#       alias_method :cmp, :compare
606
 
#       alias_method :mv, :move
607
 
#       alias_method :cp, :copy
608
 
#       alias_method :rm_f, :safe_unlink
609
 
#       alias_method :mkpath, :makedirs
610
591
    end
611
592
 
612
593
  end