mirror of
https://github.com/ruby/ruby.git
synced 2025-09-17 17:43:59 +02:00
* lib: Convert tabs to spaces for ruby files per
http://redmine.ruby-lang.org/projects/ruby/wiki/DeveloperHowto#coding-style Patch by Steve Klabnik [Ruby 1.9 - Bug #4730] Patch by Jason Dew [Ruby 1.9 - Feature #4718] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
34276148c4
commit
7bbf2f3085
67 changed files with 3823 additions and 3814 deletions
74
lib/un.rb
74
lib/un.rb
|
@ -69,9 +69,9 @@ end
|
|||
#
|
||||
# ruby -run -e cp -- [OPTION] SOURCE DEST
|
||||
#
|
||||
# -p preserve file attributes if possible
|
||||
# -r copy recursively
|
||||
# -v verbose
|
||||
# -p preserve file attributes if possible
|
||||
# -r copy recursively
|
||||
# -v verbose
|
||||
#
|
||||
|
||||
def cp
|
||||
|
@ -90,9 +90,9 @@ end
|
|||
#
|
||||
# ruby -run -e ln -- [OPTION] TARGET LINK_NAME
|
||||
#
|
||||
# -s make symbolic links instead of hard links
|
||||
# -f remove existing destination files
|
||||
# -v verbose
|
||||
# -s make symbolic links instead of hard links
|
||||
# -f remove existing destination files
|
||||
# -v verbose
|
||||
#
|
||||
|
||||
def ln
|
||||
|
@ -111,7 +111,7 @@ end
|
|||
#
|
||||
# ruby -run -e mv -- [OPTION] SOURCE DEST
|
||||
#
|
||||
# -v verbose
|
||||
# -v verbose
|
||||
#
|
||||
|
||||
def mv
|
||||
|
@ -127,9 +127,9 @@ end
|
|||
#
|
||||
# ruby -run -e rm -- [OPTION] FILE
|
||||
#
|
||||
# -f ignore nonexistent files
|
||||
# -r remove the contents of directories recursively
|
||||
# -v verbose
|
||||
# -f ignore nonexistent files
|
||||
# -r remove the contents of directories recursively
|
||||
# -v verbose
|
||||
#
|
||||
|
||||
def rm
|
||||
|
@ -146,8 +146,8 @@ end
|
|||
#
|
||||
# ruby -run -e mkdir -- [OPTION] DIR
|
||||
#
|
||||
# -p no error if existing, make parent directories as needed
|
||||
# -v verbose
|
||||
# -p no error if existing, make parent directories as needed
|
||||
# -v verbose
|
||||
#
|
||||
|
||||
def mkdir
|
||||
|
@ -163,8 +163,8 @@ end
|
|||
#
|
||||
# ruby -run -e rmdir -- [OPTION] DIR
|
||||
#
|
||||
# -p remove DIRECTORY and its ancestors.
|
||||
# -v verbose
|
||||
# -p remove DIRECTORY and its ancestors.
|
||||
# -v verbose
|
||||
#
|
||||
|
||||
def rmdir
|
||||
|
@ -179,10 +179,10 @@ end
|
|||
#
|
||||
# ruby -run -e install -- [OPTION] SOURCE DEST
|
||||
#
|
||||
# -p apply access/modification times of SOURCE files to
|
||||
# corresponding destination files
|
||||
# -m set permission mode (as in chmod), instead of 0755
|
||||
# -v verbose
|
||||
# -p apply access/modification times of SOURCE files to
|
||||
# corresponding destination files
|
||||
# -m set permission mode (as in chmod), instead of 0755
|
||||
# -v verbose
|
||||
#
|
||||
|
||||
def install
|
||||
|
@ -200,7 +200,7 @@ end
|
|||
#
|
||||
# ruby -run -e chmod -- [OPTION] OCTAL-MODE FILE
|
||||
#
|
||||
# -v verbose
|
||||
# -v verbose
|
||||
#
|
||||
|
||||
def chmod
|
||||
|
@ -215,7 +215,7 @@ end
|
|||
#
|
||||
# ruby -run -e touch -- [OPTION] FILE
|
||||
#
|
||||
# -v verbose
|
||||
# -v verbose
|
||||
#
|
||||
|
||||
def touch
|
||||
|
@ -229,9 +229,9 @@ end
|
|||
#
|
||||
# ruby -run -e wait_writable -- [OPTION] FILE
|
||||
#
|
||||
# -n RETRY count to retry
|
||||
# -w SEC each wait time in seconds
|
||||
# -v verbose
|
||||
# -n RETRY count to retry
|
||||
# -w SEC each wait time in seconds
|
||||
# -v verbose
|
||||
#
|
||||
|
||||
def wait_writable
|
||||
|
@ -260,15 +260,15 @@ end
|
|||
#
|
||||
# ruby -run -e mkmf -- [OPTION] EXTNAME [OPTION]
|
||||
#
|
||||
# -d ARGS run dir_config
|
||||
# -h ARGS run have_header
|
||||
# -l ARGS run have_library
|
||||
# -f ARGS run have_func
|
||||
# -v ARGS run have_var
|
||||
# -t ARGS run have_type
|
||||
# -m ARGS run have_macro
|
||||
# -c ARGS run have_const
|
||||
# --vendor install to vendor_ruby
|
||||
# -d ARGS run dir_config
|
||||
# -h ARGS run have_header
|
||||
# -l ARGS run have_library
|
||||
# -f ARGS run have_func
|
||||
# -v ARGS run have_var
|
||||
# -t ARGS run have_type
|
||||
# -m ARGS run have_macro
|
||||
# -c ARGS run have_const
|
||||
# --vendor install to vendor_ruby
|
||||
#
|
||||
|
||||
def mkmf
|
||||
|
@ -337,11 +337,11 @@ def help
|
|||
all = argv.empty?
|
||||
open(__FILE__) do |me|
|
||||
while me.gets("##\n")
|
||||
if help = me.gets("\n\n")
|
||||
if all or argv.delete help[/-e \w+/].sub(/-e /, "")
|
||||
print help.gsub(/^# ?/, "")
|
||||
end
|
||||
end
|
||||
if help = me.gets("\n\n")
|
||||
if all or argv.delete help[/-e \w+/].sub(/-e /, "")
|
||||
print help.gsub(/^# ?/, "")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue