Sha256: 2c814fc768ef29930e6e34213b4ad52432a5d16e6286dbb655ba4369f7a7a360

Contents?: true

Size: 522 Bytes

Versions: 2

Compression:

Stored size: 522 Bytes

Contents

#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), "..", "lib"))

root_dir = ::File.expand_path( ::File.join(::File.dirname(__FILE__), "..", "ebin") )

if ARGV.size > 0
  @name = ARGV.shift
  @version = ARGV.shift || "0.1"
end

@version ||= "0.1"
@name ||= ::File.basename(::File.dirname( root_dir ))

INCLUDE = "include"
ERLC_FLAGS = "-I#{INCLUDE}"

cmd = "cd #{root_dir} && NAME=#{@name} VERSION=#{@version} rake build_boot_scripts"

puts "** Building #{@name} **"
puts "Running command #{cmd}"

%x[#{cmd}]

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
auser-skelerl-0.0.1 bin/build-app
auser-skelerl-0.0.2 bin/build-app