#!/usr/bin/env ruby require 'rubygems' require 'rubigen' if %w(-v --version).include? ARGV.first require 'install_choctop/version' puts "#{File.basename($0)} #{InstallChocTop::VERSION}" exit(0) end require 'rubigen/scripts/generate' source = RubiGen::PathSource.new(:application, File.join(File.dirname(__FILE__), "../app_generators")) RubiGen::Base.reset_sources RubiGen::Base.append_sources source RubiGen::Scripts::Generate.new.run(ARGV, :generator => 'install_choctop') puts <<-EOS You use choctop with the following rake tasks: rake appcast # Create dmg, update appcast file, and upload to host rake build # Create/update the appcast file rake dmg # Create the dmg file for appcasting rake upload # Upload the appcast file to the host EOS