]> git.mdlowis.com Git - archive/build-system.git/commitdiff
Updated options for build scripts
authorMichael D. Lowis <mike@mdlowis.com>
Sun, 2 Nov 2014 17:14:18 +0000 (12:14 -0500)
committerMichael D. Lowis <mike@mdlowis.com>
Sun, 2 Nov 2014 17:14:18 +0000 (12:14 -0500)
setup.rb

index 70f93a11a18d0303da3d4a7c858fa257bea41b5a..757243c8231907133d920f1385b8223394e7c4b1 100644 (file)
--- 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
 
 #------------------------------------------------------------------------------