Sha256: f1b6183abb893060c36504a4ed099b6b80427bf39f61c5577efb2b403263a18d

Contents?: true

Size: 926 Bytes

Versions: 4

Compression:

Stored size: 926 Bytes

Contents

#!/usr/bin/env ruby

$script_dir= File.expand_path(File.join(File.dirname(__FILE__), "..", "lib"))
$vendor_dir= File.expand_path(File.join(File.dirname(__FILE__), "..", "vendor"))
$app_name= File.basename($0)

require "#{$script_dir}/project"

arg_settings= {}
project_file= "distil.yml"
args= []

ARGV.each { |v|
  if (!v[/^-/])
    args << v
    next
  end
  
  v= v.gsub(/^-+/, '')
  v.gsub!("-", "_")
  
  key,value= v.split("=")
  if (!value)
    value= true
  end
  
  if ("f"==key || "file"==key || "buildfile"==key)
    project_file= value
    next
  end
  
  arg_settings[key]= value
}

# Change working directory to the folder containing the build YML file.
project_file= File.expand_path(project_file)

if (!File.exists?(project_file))
  puts "#{$app_name}: can't find project file: #{project_file}"
  exit
end

project= Project.new(project_file, arg_settings)
project.build_external_projects
project.build_targets

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
distil-0.8.2 bin/distil
distil-0.8.1 bin/distil
distil-0.8.0 bin/distil
distil-0.7.0 bin/distil