Having More Than One Version Of Krita

Created by Dmitry Kazakov on on 2014-06-06
Keywords:

Having More Than One Version Of Krita

This is a slight extension of the default build system. Instead of having:

$HOME/kde/inst
$HOME/kde/src/calligra
$HOME/kde/build/calligra

You have

$HOME/kde/master
$HOME/kde/2.8
$HOME/kde/src/calligra
$HOME/kde/src/2.8
$HOME/kde/build/calligra
$HOME/kde/build/2.8

You get the extra source directory with git-new-workdir after getting the calligra source:

git-new-workdir calligra 2.8
cd 2.8
git checkout calligra/2.8
cd calligra
git checkout master

Make the

$HOME/kde/master
$HOME/kde/2.8

manually.

Use this script to easily switch, call it changeto:

#!/bin/sh

arg="$1"
if test -z "$arg"; then exit 1; fi

rm $HOME/kde/inst
ln -s $HOME/kde/$arg $HOME/kde/inst
kbuildsycoca4

Switch like this:

changeto master

changeto 2.8

if master is active, build and install as usual, if 2.8 is active, go to $HOME/kde/build/2.8 and build and install as usual.

If you only keep in mind not to install master into the 2.8 install directory and the other way around, life will be sweet and easy.

This works for every branch, of course!