#! /usr/local/bin/ruby
# -*- mode: ruby -*-
#
# Copyright (C) 2002-2004 Satoru Takabayashi <satoru@namazu.org> 
# Copyright (C) 2003-2005 Kouichirou Eto
#     All rights reserved.
#     This is free software with ABSOLUTELY NO WARRANTY.
#
# You can redistribute it and/or modify it under the terms of 
# the GNU General Public License version 2.
#

base = File::dirname(__FILE__)+"/.." # /usr/local/qwik/bin -> /usr/local/qwik
$LOAD_PATH.unshift(File.expand_path(base+"/lib"))
$LOAD_PATH.unshift(File.expand_path(base+"/compat"))
require "qwik/ml-quickml-server"

def main(argv)
  server = QuickML::QuickMLServer.new
  config_file = File::dirname(__FILE__)+"/quickmlrc"
  config_file = argv.first if argv.length == 1
  server.main(config_file)
end
main(ARGV)
