Mercurial > hg > soundsoftware-site
changeset 1332:1d1cb01c0417 live
RDoc::usage is not in Ruby 1.9
author | Chris Cannam |
---|---|
date | Thu, 20 Jun 2013 11:48:52 +0100 |
parents | 1e9b1bdd062e |
children | 1913ae0bd76a |
files | extra/soundsoftware/reposman-soundsoftware.rb |
diffstat | 1 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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)