e4a82c56b4
Command line parsing in place and complete for initial version. Will look next into reading command name and constant as arguments instead of options. Script determines whether ant is found on the path, and complains if it is not. TODO: Fix log messages to be read in appropriately
34 lines
1.0 KiB
Ruby
34 lines
1.0 KiB
Ruby
# -*- ruby -*-
|
|
|
|
require 'rubygems'
|
|
require 'hoe'
|
|
require './lib/pure_m_v_c_gen/version.rb'
|
|
|
|
PKG_NAME = "puremvc-gen"
|
|
PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
|
|
version = PureMVCGen::Version::STRING.dup
|
|
if ENV['SNAPSHOT'].to_i == 1
|
|
version << "." << Time.now.utc.strftime("%Y%m%d%H%M%S")
|
|
end
|
|
PKG_VERSION = version
|
|
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
|
|
|
|
Hoe.new(PKG_NAME, PKG_VERSION) do |p|
|
|
p.rubyforge_name = 'gjastrab' # if different than lowercase project name
|
|
p.developer('Greg Jastrab', 'gjastrab.dev@gmail.com')
|
|
p.name = PKG_NAME
|
|
p.version = PKG_VERSION
|
|
#p.platform = Gem::Platform::RUBY
|
|
p.author = "Greg Jastrab"
|
|
p.email = "gjastrab.dev@gmail.com"
|
|
p.description = %q(An ANT-based PureMVC generator.)
|
|
p.summary = p.description # More details later??
|
|
p.remote_rdoc_dir = PKG_NAME # Release to /PKG_NAME
|
|
# p.changes = p.paragraphs_of('CHANGELOG', 0..1).join("\n\n")
|
|
p.extra_deps << ["cmdparse", ">= 2.0.2"]
|
|
p.need_zip = true
|
|
p.need_tar = false
|
|
end
|
|
|
|
# vim: syntax=Ruby
|