build-tool

A week ago i started hacking on a python based kdesvn-build substitution. I did that for two reasons:

  1. I wanted to use git locally.
  2. I wanted to have an interactive tool, that does what kdesvn-build does.

Today i proudly present build-tool. It's not nearly feature complete but it does it's job. And i would like to get some feedback. Keep in mind that it's alpha quality. Noone else but me used it until now. So expect some failures.

You can grab it with from gitorious and install it the typical python way.

python ./setup.py install # to install it as usual or
python setup.py develop # to install it inplace.

The next step is to create a configuration file. That will be automated one day but currently you have to copy the file manually.

cp build_tool/data/kdesvn.ini.example ~/.kdesvn.ini

The tool is installed and configured. Now it's time to use it. There are two different ways to run it. If you start it without arguments you will get an prompt. If called with arguments they are interpreted as one command and executed.

Start it without arguments an type help. You will get the list of available commands. type help update. This is the kdesvn-build like commands. Other interesting commands are

fetch
Just fetch the latest changes from the remote repository. The change are not applied to the local checkout
rebase
Fetches the latest changes and applies them to the local checkout.
configure
Reconfigure the build
make
execute make
install
execute make install
log
fetches and show the differences between the local checkout and the remote repository. I'm searching for a better naming for this command

The other commands are from pythons cmd2 module. They allow you to write, save, edit and execute scripts or call shell commands.

All commands work on the module from the configuration:default section or on the modules specified as arguments. If in doubt add the following two options '-vv --dry-run'. It increases the verbosity and ensures nothing is done.

The script only works if there are no local uncommited changes in the git repository. I would suggest to not work with them anyways. Clone theme locally to do changes. Or tell me about better alternatives.

Btw. I have no idea if the script works under windows. It could. I would like to have some feedback.

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.