wiki:WikiStart/Toolchain/DevelopingAutoproj

Autoproj and autobuild are located on gitorious:

http://gitorious.org/autoproj

To develop using autoproj from git, follow these steps. They expect you to do the autoproj/autobuild development stuff in ~/dev-autoproj

  • clone the repositories
mkdir dev-autoproj
cd dev-autoproj
git clone https://github.com/rock-core/autoproj.git
git clone https://github.com/rock-core/autobuild.git
  • install rake and utilrb in a GEM_HOME different than the one from the target autoproj installation
export GEM_HOME=$PWD/gems
export PATH=$GEM_HOME/bin:$PATH
gem install rake utilrb hoe
  • generate the autobuild gem. The generated gem is in the pkg/ subdirectory. You can find the exact name at the bottom of the output of the rake command.
cd dev-autoproj/autobuild
rake package
rake install_gem
  • generate the autoproj gem and the autoproj_bootstrap script The generated gem is in the pkg/ subdirectory. You can find the exact name at the bottom of the output of the rake command. The bootstrap script is in bin/autoproj_bootstrap
cd dev-autoproj/autoproj
rake dist:package
rake dist:bootstrap
  • open a new console and make sure that GEM_HOME and PATH are not including ~/dev-autoproj/gems
  • call the autoproj_bootstrap script adding "localdev" as first argument. It asks autoproj_bootstrap to NOT install the autoproj/autobuild gem
cd ~/dev
ruby ~/dev-autoproj/autoproj/bin/autoproj_bootstrap localdev
source env.sh
# NOTE: replace the gem names by the actual names !!!!!
gem install ~/dev-autoproj/autoproj/pkg/autoproj-VERSION.gem
gem install ~/dev-autoproj/autobuild/pkg/autobuild-VERSION.gem
ruby ~/dev-autoproj/autoproj/bin/autoproj_bootstrap git git://gitorious.org/rock/buildconf-all.git
  • to update and test your changes, you need to compile the gem in the first console and install it in the second
Last modified 4 years ago Last modified on 12/02/14 09:35:18