ref: refs/heads/master commit a7b0426d6774cacee66d4c50b14a5599b403b960 Author: Klaus Kämpf <kkaempf@suse.de> Date: Thu Mar 12 11:49:38 2009 +0100 Add comments, remove debug print --- bindings/ruby/rdoc | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/bindings/ruby/rdoc b/bindings/ruby/rdoc index 35c69ce..67e8246 100755 --- a/bindings/ruby/rdoc +++ b/bindings/ruby/rdoc @@ -1,20 +1,19 @@ #!/usr/bin/ruby -#require 'pathname' - -puts "rdoc #{ARGV.inspect}" +# This is ./rdoc +# home = File.dirname __FILE__ - $:.unshift(home) - new_rdoc = home+"/rdoc.rb" +# Symlink ./rdoc.rb to /usr/bin/rdoc +# File.symlink("/usr/bin/rdoc", new_rdoc) unless File.symlink?(new_rdoc) begin - require 'parse_swig.rb' - require 'rdoc' + require 'parse_swig.rb' # load the swig parser + require 'rdoc' # load the original rdoc ensure - File.delete new_rdoc + File.delete new_rdoc # Discard the symlink end -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org