Sha256: 38b3da0ff362e1fbfdcae2beb9a6390e221575d572a03699e2eaa8e96f422df9

Contents?: true

Size: 1.34 KB

Versions: 19

Compression:

Stored size: 1.34 KB

Contents

#! /usr/bin/env ruby
require 'autoproj'
require 'autoproj/ops/main_config_switcher'

root_dir = Dir.pwd
if File.exists?(File.join(root_dir, 'autoproj', "manifest"))
    raise ConfigError.new, "this installation is already bootstrapped. Remove the autoproj directory if it is not the case"
end

Autoproj::CmdLine.report do
    switcher = Autoproj::Ops::MainConfigSwitcher.new(root_dir)
    begin
        switcher.bootstrap(*ARGV)
        Autoproj.save_config

        STDERR.puts <<EOTEXT


#{color('autoproj bootstrap successfully finished', :green, :bold)}

#{color('To further use autoproj and the installed software', :bold)}, you
must add the following line at the bottom of your .bashrc:
  source #{root_dir}/#{Autoproj::ENV_FILENAME}

WARNING: autoproj will not work until your restart all
your consoles, or run the following in them:
  $ source #{root_dir}/#{Autoproj::ENV_FILENAME}

#{color('To import and build the packages', :bold)}, you can now run
  aup
  amake

The resulting software is installed in
  #{root_dir}/install

EOTEXT

    rescue RuntimeError
        STDERR.puts <<-EOTEXT
#{color('autoproj bootstrap failed', :red, :bold)}
To retry, first source the #{Autoproj::ENV_FILENAME} script with
  source #{root_dir}/#{Autoproj::ENV_FILENAME}
and then re-run autoproj bootstrap
  autoproj bootstrap '#{ARGV.join("'")}'
    EOTEXT

        raise
    end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
autoproj-1.12.6 bin/autoproj-bootstrap
autoproj-1.12.5 bin/autoproj-bootstrap
autoproj-1.12.4 bin/autoproj-bootstrap
autoproj-1.12.3 bin/autoproj-bootstrap
autoproj-1.12.2 bin/autoproj-bootstrap
autoproj-1.12.1 bin/autoproj-bootstrap
autoproj-1.12.0 bin/autoproj-bootstrap
autoproj-1.11.0.rc15 bin/autoproj-bootstrap
autoproj-1.11.0.rc14 bin/autoproj-bootstrap
autoproj-1.11.0.rc13 bin/autoproj-bootstrap
autoproj-1.11.0.rc12 bin/autoproj-bootstrap
autoproj-1.11.0.rc11 bin/autoproj-bootstrap
autoproj-1.11.0.rc10 bin/autoproj-bootstrap
autoproj-1.11.0.rc9 bin/autoproj-bootstrap
autoproj-1.11.0.rc8 bin/autoproj-bootstrap
autoproj-1.11.0.rc7 bin/autoproj-bootstrap
autoproj-1.11.0.rc6 bin/autoproj-bootstrap
autoproj-1.11.0.rc5 bin/autoproj-bootstrap
autoproj-1.11.0.rc4 bin/autoproj-bootstrap