mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/fileutils.rb (ln): add ' -f' in the verbose message.
* lib/fileutils.rb (cp_r): add 'p' in the verbose message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a8bb4ed577
commit
6254d7103b
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
Mon Jan 6 18:31:45 2003 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||
|
||||
* lib/fileutils.rb (ln): add ' -f' in the verbose message.
|
||||
|
||||
* lib/fileutils.rb (cp_r): add 'p' in the verbose message.
|
||||
|
||||
Mon Jan 6 13:26:35 2003 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* process.c (proc_exec_v): follow to proc_spawn_v(). call do_aspawn()
|
||||
|
|
|
@ -326,7 +326,7 @@ module FileUtils
|
|||
|
||||
def ln( src, dest, *options )
|
||||
force, noop, verbose, = fu_parseargs(options, :force, :noop, :verbose)
|
||||
fu_output_message "ln #{[src,dest].flatten.join ' '}" if verbose
|
||||
fu_output_message "ln#{force ? ' -f' : ''} #{[src,dest].flatten.join ' '}" if verbose
|
||||
return if noop
|
||||
|
||||
fu_each_src_dest(src, dest) do |s,d|
|
||||
|
@ -372,7 +372,7 @@ module FileUtils
|
|||
|
||||
def cp_r( src, dest, *options )
|
||||
preserve, noop, verbose, = fu_parseargs(options, :preserve, :noop, :verbose)
|
||||
fu_output_message "cp -r #{[src,dest].flatten.join ' '}" if verbose
|
||||
fu_output_message "cp -r#{preserve ? 'p' : ''} #{[src,dest].flatten.join ' '}" if verbose
|
||||
return if noop
|
||||
|
||||
fu_each_src_dest(src, dest) do |s,d|
|
||||
|
|
Loading…
Reference in a new issue