Sha256: 9802ccb461f12314ff36fc155390074c5545c505b23b41071621a2a7d6b0e5f9
Contents?: true
Size: 1.6 KB
Versions: 3
Compression:
Stored size: 1.6 KB
Contents
#!/usr/bin/env ruby # -*- encoding: utf-8 -*- #Copyright (c) 2011 Xavier Nayrac # #Permission is hereby granted, free of charge, to any person obtaining #a copy of this software and associated documentation files (the #"Software"), to deal in the Software without restriction, including #without limitation the rights to use, copy, modify, merge, publish, #distribute, sublicense, and/or sell copies of the Software, and to #permit persons to whom the Software is furnished to do so, subject to #the following conditions: # #The above copyright notice and this permission notice shall be included #in all copies or substantial portions of the Software. # #THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, #EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF #MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. #IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY #CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, #TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE #SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. $LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib' $GENIT_PATH = File.expand_path(File.dirname(__FILE__)) + '/..' require 'genit' include Genit def usage puts %q{usage: genit command where command is: create project-name compile | cc} end case ARGV[0] when "create" case ARGV[1] when /\w/ project = ProjectCreator.new ARGV[1] project.create else usage end when "compile", "cc" compiler = Compiler.new Dir.getwd compiler.compile else usage end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
genit-0.3 | bin/genit |
genit-0.2 | bin/genit |
genit-0.1 | bin/genit |