bin/dokkit in dokkit-0.2.0 vs bin/dokkit in dokkit-0.3.0
- old
+ new
@@ -1,63 +1,7 @@
-#
-# File 'dokkit' created on 09 ott 2007 at 15:57:46.
-#
-# See 'dokkit.rb' or LICENSE for licence information.
-#
-# (c)2006, 2007 Andrea Fazzi <andrea.fazzi@alca.le.it> (and contributors).
-#
-# Commandline launcher for Dokkit.
-# Get set up with library paths, however we're installed.
-#
+#!/usr/bin/env ruby
-=begin
+require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'dokkit'))
-= NAME
-dokkit - Ruby Documentation toolKit
-
-= SYNOPSIS
-
-dokkit [options] [task1] .. [taskN]
-
-= DESCRIPTION
-
-dokkit is a documentation environment. It is based on rote and it uses deplate to generate output in a large variety of formats (tex, html, docbook, plain text, ...).
-
-For more information please execute:
-
-$ dokkit --help
-
-= OPTIONS
-
-For a complete list of the options please execute:
-
-$ dokkit --help
-
-= AUTHOR
-
-Andrea Fazzi <andrea.fazzi@alca.le.it>
-
-= SEE ALSO
-
-ruby(1)
-
-=end
-
-def croak
- puts "Cannot locate Dokkit libraries - Do you need to set $DOKKIT_LIB?"
- exit(1)
-end
-
-begin
- require 'rubygems'
-rescue LoadError
- nil # just ignore, don't use gems
-end
-
-require 'dokkit'
-require 'dokkit/app'
-
-croak unless Dokkit.dokkit_lib
-
+# Put your code here
Dokkit.application.run
-
-
+# EOF