A week ago i started hacking on a python based kdesvn-build substitution. I did that for two reasons:
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 orpython 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
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