Sha256: 2d2e4ab2563dd5be6c9ac89ab7d26c50da4a5b7d0c0d1de3fa5bceaf890f114c

Contents?: true

Size: 940 Bytes

Versions: 26

Compression:

Stored size: 940 Bytes

Contents

require "bundler/gem_tasks"
require "rake/testtask"

task 'default'
task 'gem' => 'build'

Rake::TestTask.new(:test) do |t|
    t.libs << "lib" << Dir.pwd
    t.test_files = FileList['test/**/test_*.rb']
end

desc "generate the bootstrap script"
task 'bootstrap' do
    require 'yaml'
    autoproj_ops_install = File.read(File.join(Dir.pwd, 'lib', 'autoproj', 'ops', 'install.rb'))
    # Since we are using gsub to replace the content in the bootstrap file,
    # we have to quote all \
    autoproj_ops_install.gsub! /\\/, '\\\\\\\\'

    %w{bootstrap install}.each do |install_script|
        bootstrap_code = File.read(File.join(Dir.pwd, 'bin', "autoproj_#{install_script}.in")).
            gsub('AUTOPROJ_OPS_INSTALL', autoproj_ops_install)
        File.open(File.join(Dir.pwd, 'bin', "autoproj_#{install_script}"), 'w') do |io|
            io.write bootstrap_code
        end
    end
end
file 'bin/autoproj_bootstrap' => 'bootstrap'

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
autoproj-2.0.0.rc37 Rakefile
autoproj-2.0.0.rc36 Rakefile
autoproj-2.0.0.rc35 Rakefile
autoproj-2.0.0.rc34 Rakefile
autoproj-2.0.0.rc33 Rakefile
autoproj-2.0.0.rc32 Rakefile
autoproj-2.0.0.rc31 Rakefile
autoproj-2.0.0.rc30 Rakefile
autoproj-2.0.0.rc29 Rakefile
autoproj-2.0.0.rc28 Rakefile
autoproj-2.0.0.rc27 Rakefile
autoproj-2.0.0.rc26 Rakefile
autoproj-2.0.0.rc25 Rakefile
autoproj-2.0.0.rc24 Rakefile
autoproj-2.0.0.rc23 Rakefile
autoproj-2.0.0.rc22 Rakefile
autoproj-2.0.0.rc21 Rakefile
autoproj-2.0.0.rc20 Rakefile
autoproj-2.0.0.rc19 Rakefile
autoproj-2.0.0.rc18 Rakefile