Time to open the Branch

    jason harris's picture
    2008
    12
    Jan

    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:

    Comments

    Comment viewing options

    Select your preferred way to display the comments and click "Save settings" to activate your changes.
    mahoutsukai's picture

    Automatic context switching

    If you follow David's suggestion from http://techbase.kde.org/index.php?title=Getting_Started/Increased_Productivity_in_KDE4_with_Scripts#Set_up_for_development and put .my-setup files with the above content in $HOME/kde/src resp. $HOME/kde/src_4.0 then the context will be switched automatically whenever you cd into $HOME/kde/src (or below) or $HOME/kde/src_4.0 (or below).

    Comment viewing options

    Select your preferred way to display the comments and click "Save settings" to activate your changes.