Sha256: 44eb19ad949588c70a947eb4a5c9b050ed75a4405561afad668c6cc484064572

Contents?: true

Size: 794 Bytes

Versions: 4

Compression:

Stored size: 794 Bytes

Contents

#!/usr/bin/env ruby
Dir[File.dirname(__FILE__) + "/../vendor/gems/*"].each {|lib| $:.unshift( File.expand_path(lib + "/lib") )}
require 'git-style-binary/command'
require "rubigen"
require 'rubigen/scripts/generate'

GitStyleBinary.command do
  banner <<-EOS
Usage: #{$0} #{all_options_string}

  Create a Makefile and application skeleton
EOS

  short_desc "Create a makefile"
  
  opt :name, "The basename of the makefile application to generate", :type => :string

  run do |command|
        
    source = RubiGen::PathSource.new(:application, File.join(File.dirname(__FILE__), "../generators"))
    RubiGen::Base.reset_sources
    RubiGen::Base.append_sources source
    
    argv = [command[:name]]
    
    RubiGen::Scripts::Generate.new.run(argv, :generator => 'makefile')
    
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
auser-skelerl-0.0.5 bin/skelerl-makefile
auser-skelerl-0.0.6 bin/skelerl-makefile
auser-skelerl-0.0.7 bin/skelerl-makefile
skelerl-0.0.5 bin/skelerl-makefile