Commit a2401e8d authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Moved main jsduck script to bin/

parent 16291fb0
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
#!/usr/bin/env ruby
# JsDuck is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
@@ -13,12 +14,12 @@
#
# Copyright 2010 Rene Saarsoo.

$:.unshift File.dirname(__FILE__) # For running the actual JsDuck app
# For running when gem not installed
$:.unshift File.dirname(File.dirname(__FILE__)) + "/lib"

require 'jsduck/app'
require 'optparse'

if __FILE__ == $0 then
app = JsDuck::App.new
app.template_dir = File.dirname(File.dirname(__FILE__)) + "/template"

@@ -60,5 +61,3 @@ if __FILE__ == $0 then
end

app.run()
end