Skip to content

Time to open the Branch

Saturday, 12 January 2008  |  jason harris

With the release of KDE 4.0, it's time to start maintaining both trunk and branch versions of the code, so that bugfixes can be backported to the branch.

If you use the cs/cb/cmakekde scripts to manage your build environment, it's fairly easy to switch the context of these between branch and trunk.

I am using the following scripts (I have trunk in $HOME/kde/src and branch in $HOME/kde/src_4.0):

#!/bin/bash # branch: switch build environment to the 4.0 branch export KDE_BUILD=$HOME/kde/build_4.0 export KDE_SRC=$HOME/kde/src_4.0 export OBJ_REPLACEMENT="s#$KDE_SRC_4_0#$KDE_BUILD_4_0#" #!/bin/bash # trunk: switch build environment to trunk export KDE_BUILD=$HOME/kde/build export KDE_SRC=$HOME/kde/src export OBJ_REPLACEMENT="s#$KDE_SRC#$KDE_BUILD#"

Seems to work so far.

Oh, and since all the cool kids are doing it: