Sha256: 8d47a7305c8577d6916dd4881a94bc01c72a79096b8726648049a49ed8df5a1a

Contents?: true

Size: 950 Bytes

Versions: 26

Compression:

Stored size: 950 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("require '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.7.1 Rakefile
autoproj-2.7.0 Rakefile
autoproj-2.6.1 Rakefile
autoproj-2.6.0 Rakefile
autoproj-2.5.1 Rakefile
autoproj-2.5.0 Rakefile
autoproj-2.5.0.pre1 Rakefile
autoproj-2.4.0 Rakefile
autoproj-2.3.1 Rakefile
autoproj-2.3.0 Rakefile
autoproj-2.2.2 Rakefile
autoproj-2.2.1 Rakefile
autoproj-2.2.0 Rakefile
autoproj-2.1.2 Rakefile
autoproj-2.1.1 Rakefile
autoproj-2.1.0 Rakefile
autoproj-2.1.0.rc1 Rakefile
autoproj-2.0.3 Rakefile
autoproj-2.0.2 Rakefile
autoproj-2.0.1 Rakefile