# HG changeset patch # User Chris Cannam # Date 1371725332 -3600 # Node ID 1d1cb01c0417f7d9748ec9526830adbdaecf0c44 # Parent 1e9b1bdd062ebc3806048f677a19f0a68e1e2ccb RDoc::usage is not in Ruby 1.9 diff -r 1e9b1bdd062e -r 1d1cb01c0417 extra/soundsoftware/reposman-soundsoftware.rb --- a/extra/soundsoftware/reposman-soundsoftware.rb Thu Jun 20 11:33:30 2013 +0100 +++ b/extra/soundsoftware/reposman-soundsoftware.rb Thu Jun 20 11:48:52 2013 +0100 @@ -66,7 +66,7 @@ require 'getoptlong' -require 'rdoc/usage' +#require 'rdoc/usage' require 'find' require 'etc' @@ -115,6 +115,11 @@ raise "\"#{command}\" failed" unless system command end +def usage + puts "See source code for supported options" + exit +end + module SCM module Subversion @@ -158,7 +163,7 @@ when '--verbose'; $verbose += 1 when '--test'; $test = true when '--version'; puts Version; exit - when '--help'; RDoc::usage + when '--help'; usage when '--quiet'; $quiet = true end end @@ -182,7 +187,7 @@ $svn_url += "/" if $svn_url and not $svn_url.match(/\/$/) if ($redmine_host.empty? or $repos_base.empty?) - RDoc::usage + usage end unless File.directory?($repos_base)