#! /usr/bin/ruby1.8
#
# This file is automatically generated by the installer.
# Do not edit by hands.

$KCODE = "u"
Thread.abort_on_exception = true

begin
    require 'gettext'
rescue LoadError
    require 'fantasdic/gettext'
    $stderr.puts 'WARNING : Ruby/Gettext was not found.'
end

require 'fantasdic'

begin
    Fantasdic.main
rescue => e
    $stderr.puts <<EOS
-----------------------
Fantasdic just crashed
-----------------------
Timestamp: #{Time.now}
Message: #{e.message}
Backtrace:
#{e.backtrace.join("\n")}
Release: #{Fantasdic::VERSION}
Uname -a: #{`uname -a`.chomp}
--
Please report this dump to '#{Fantasdic::BUGZILLA}' with some additional
information, such as the description of the crash and the steps to reproduce it
(if it's possible).
EOS
    exit 1
end
