Hi everybody !
I am writing a script in order to easily install/update/remove Kiba (and Co.) from SVN.
As it will (if it ever works

) simplify getting Kiba, I called it... (drum roll)...
easyKiba !!!

I have to warn you this is my first real bash script so it might be quite "surprising"

It
should work on any distro, assuming you already have the needed packages to compile the program.
It needs to behave differently according to your distro. Currently it only guesses if you are using Ubuntu or Fedora as :
-
Fedora users have to compile with a special option
-
Ubuntu users have to install with "sudo make install" where others will have to do "su -c 'make install'"
- I don't know any other possible distro-issues. Other distros users can post here feedback about some issues the script should be aware of.
It has currently only been tested on Fedora Core 6 (on two different computers) and it works just fine.
I'd like to have as much feedback as possible, and if it goes well, I could integrate it in the wiki as an alternative install method. Please, post all your observations in this thread.
Bash-gurus are obviously welcome (and encouraged) to take a look inside it and post here their impressions.
====================
HERE IS HOW IT WORKS :1. create a folder that will contain kiba SVNs once fetched. Let's say
/home/$user/what/you/want/kiba-dock/ (we'll only call it
kiba-dock/ in what follows).
2. go to that folder
3. execute script :
[mathieu@bochecha kiba-dock]$ easyKiba
-----------------------------------
Easyfication script for Kiba-Dock
-----------------------------------
Usage : easyKiba OPTION [optional params]
OPTION :
-h, --help Display this message
-i, --install Fetch SVN and install Kiba Dock.
-u, --update Fetch SVN and update Kiba Dock.
-r, --remove Remove Kiba Dock.
[optional params] :
optional parameters that will be passed to the configure script
4. Once installed/updated, 5 folders will have appeared in the previously mentioned
kiba-dock/ folder. Those are the 5 SVN repos that have been fetched.
Do not remove them ! They will be used for updating/removing Kiba-Dock with this same script.
5. Every time you want to use the script, just return to this
kiba-dock/ folder and run easyKiba with the desired option.
====================
EDIT :- Just implemented the remove part
- Corrected some distro issues (
/usr/local ≠
/usr)
====================
EDIT 19/05/2007 :- Now you can choose the parts you want to install/update/remove !
NB : You have to take care of dependencies (kibaplugins obviously depends on kibadock) because the script won't resolve them for you

====================
EDIT 24/06/2007 :- Added the epiphany plugin SVN repo to the script
Tested on Fedora 7 and works fine.
====================
EDIT 17/08/2007 :- Now points to the new SVN repository at Sourceforge
- I also added a functionnality danielb had suggered me : you can now pass parameters to the configure script by passing them to easyKiba. The first parameter must still be one of the install/update/remove parameters, but then, just give what you want.
For example, if you want to build Kiba with akamaru support (which does not seem to be a good idea at the moment), you can enter :
$ easyKiba --install --enable-akamaru
This will execute :
$ configure --enable-akamaru
If you want to pass the parameters "param1" and "param2" to the configure script while updating, just enter :
$ easyKiba --update param1 param2
.
NB: the parameters will be passed to all parts of the project. If you want to give param1 to kiba-dock and param2 to kiba-plugins, you will have to build them manually.