I don’t know why, but I’ve never even tried kdesvn-build script, so the things
I’ll write here are maybe (probably) already present in it.
So, if you don’t use kdesvn-build, and have your system set up like it is
explained in the above link, keep reading.
Important: I’m using ZSH, so the scripts here maybe need changing in order
to be usable in BASH.
First of all, we need to add some global, environment variables. You should put this in the script for setting KDE4 variables (for example in .my-setup)
The first variable will be used by the build logging system. You should define it near the definitions of KDE_SRC and KDE_BUILD variables.
After this, we are making a variable that holds all the dirs to be included in the automatic build system.
Now, we can create two very easy functions for fetching the updates:
Notice that it reports errors in $KDE_LOG/update.log file.
Now we define kdemake command which will build all the directories we specified in $KDE_BUILD_DIRS. Like kdeup, it logs the process. The main log is $KDE_LOG/build.log and each built directory has its own build log (the output of cmake + make).
Sometimes you want to have a certain module build with debugging symbols - just replace the default cmakekde function with this one. It checks for the .debug file and if it exists, it builds that module with dbg symbols included.
So, updating KDE is now a matter of calling kdeup and kdemake. The next thing to do is to create a watching mechanism (to put it in the command watch plasmoid for example).
The first script is outputting what is currently being built - something like this: