Revision 1332:1d1cb01c0417
| extra/soundsoftware/reposman-soundsoftware.rb | ||
|---|---|---|
| 66 | 66 |
|
| 67 | 67 |
|
| 68 | 68 |
require 'getoptlong' |
| 69 |
require 'rdoc/usage' |
|
| 69 |
#require 'rdoc/usage'
|
|
| 70 | 70 |
require 'find' |
| 71 | 71 |
require 'etc' |
| 72 | 72 |
|
| ... | ... | |
| 115 | 115 |
raise "\"#{command}\" failed" unless system command
|
| 116 | 116 |
end |
| 117 | 117 |
|
| 118 |
def usage |
|
| 119 |
puts "See source code for supported options" |
|
| 120 |
exit |
|
| 121 |
end |
|
| 122 |
|
|
| 118 | 123 |
module SCM |
| 119 | 124 |
|
| 120 | 125 |
module Subversion |
| ... | ... | |
| 158 | 163 |
when '--verbose'; $verbose += 1 |
| 159 | 164 |
when '--test'; $test = true |
| 160 | 165 |
when '--version'; puts Version; exit |
| 161 |
when '--help'; RDoc::usage
|
|
| 166 |
when '--help'; usage |
|
| 162 | 167 |
when '--quiet'; $quiet = true |
| 163 | 168 |
end |
| 164 | 169 |
end |
| ... | ... | |
| 182 | 187 |
$svn_url += "/" if $svn_url and not $svn_url.match(/\/$/) |
| 183 | 188 |
|
| 184 | 189 |
if ($redmine_host.empty? or $repos_base.empty?) |
| 185 |
RDoc::usage
|
|
| 190 |
usage |
|
| 186 | 191 |
end |
| 187 | 192 |
|
| 188 | 193 |
unless File.directory?($repos_base) |
Also available in: Unified diff