From: Michael D. Lowis Date: Sun, 2 Nov 2014 17:14:18 +0000 (-0500) Subject: Updated options for build scripts X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=c783ad99f85abdf01610bb05d531e13e35e250cd;p=archive%2Fbuild-system.git Updated options for build scripts --- diff --git a/setup.rb b/setup.rb index 70f93a1..757243c 100644 --- a/setup.rb +++ b/setup.rb @@ -11,6 +11,7 @@ DefaultDeps = [ # Generate a default Gemfile if none exists if not File.exists? "Gemfile" File.open("Gemfile","w") do |f| + f.puts "source 'https://rubygems.org'" DefaultDeps.each {|d| f.puts("gem '#{d[0]}', '#{d[1]}'") } end end @@ -32,7 +33,8 @@ Opts = Trollop::options do opt :verbose, "Echo commands being executed", :short => 'v' opt :clean, "Clean all generated files", :short => 'c' opt :purge, "Purges all generated files and directories", :short => 'p' - opt :define, "Define or override a cosntruction variable", :type => :strings, :short => 'D' + opt :define, "Define or override construction variable(s)", :type => :strings, :short => 'D' + opt :profile, "Selects the profile(s) under which the project wil be built", :type => :strings, :short => 'P' end #------------------------------------------------------------------------------