Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 9f82ef0eca
Fetching contributors…

Cannot retrieve contributors at this time

59 lines (54 sloc) 1.227 kB
module Main
#
# top level constants
#
Main::VERSION = '4.6.0' unless
defined? Main::VERSION
def self.version() Main::VERSION end
Main::LIBDIR = File.join(File.dirname(File.expand_path(__FILE__)), self.name.downcase, '') unless
defined? Main::LIBDIR
def self.libdir() Main::LIBDIR end
Main::EXIT_SUCCESS = 0 unless defined? Main::EXIT_SUCCESS
Main::EXIT_FAILURE = 1 unless defined? Main::EXIT_FAILURE
Main::EXIT_WARN = 42 unless defined? Main::EXIT_WARN
Main::EXIT_WARNING = 42 unless defined? Main::EXIT_WARNING
#
# built-in
#
require 'logger'
require 'enumerator'
require 'set'
require 'uri'
require 'time'
require 'date'
#
# use gems to pick up dependancies
#
begin
require 'rubygems'
rescue LoadError
42
end
begin
require 'chronic'
rescue LoadError
42
end
require 'fattr'
require 'arrayfields'
require 'map'
#
# main's own libs
#
require libdir + 'stdext'
require libdir + 'softspoken'
require libdir + 'util'
require libdir + 'logger'
require libdir + 'usage'
require libdir + 'cast'
require libdir + 'parameter'
require libdir + 'getoptlong'
require libdir + 'mode'
require libdir + 'program'
require libdir + 'factories'
end
Jump to Line
Something went wrong with that request. Please try again.