Hash :
197ae829
Author :
Thomas de Grivel
Date :
2023-02-23T18:22:36
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
#!/usr/bin/env ruby
load "#{File.dirname(File.dirname(__FILE__))}/lib/rbpkg/log.rb"
load "#{File.dirname(File.dirname(__FILE__))}/lib/rbpkg/ci.rb"
$ARGS = ARGV
def shift
usage if $ARGS == []
arg = $ARGS[0]
$ARGS = $ARGS[1..] || []
arg
end
verbose = 2 # print command output
case $ARGS[0]
when "-v"
verbose = 3 # print all messages
shift
when "-q"
verbose = 1 # print commands
shift
when "-qq"
verbose = 0 # print nothing
shift
end
Rbpkg.init("rbpkg_ci", verbose)
def usage()
STDERR.puts "Usage: #{File.basename($0)} REPO ..."
exit 1
end
def rbpkg_ci
case $ARGS[0]
when "-h"
usage
when "--help"
usage
end
Rbpkg.CI.tag
$ARGS.each do |name|
Rbpkg.Repos.repo(name).ci
end
end
rbpkg_ci