3 # Author: Aaron Cook <cookacounty@gmail.com>
5 # This script will build git-cola on an older Linux distribution,
8 # This script assumes you have the appropriate tars already downloaded
9 # (adjust the versions as needed, or set the appropriate COLA_* variables)
10 # Note the "rm -rf" at the beginning.
11 # Replace COLA_PREFIX with your path, or set the COLA_PREFIX environment
14 # Set COLA_NUM_JOBS to control the number of cores used to build.
15 # This script defaults to 2.
16 # The only real trick was the python compile options for the utf.
17 # You should run "make prefix=$HOME/apps/git-cola install" in the
18 # git-cola repo after running this script.
20 # To run git cola, I just created another script that adds the proper paths:
22 # COLA_PREFIX="$HOME/apps/git-cola"
23 # PATH="$COLA_PREFIX/bin:$PATH"
24 # PYTHONPATH="$COLA_PREFIX/Python:$PYTHONPATH"
25 # export PATH PYTHONPATH
26 # $COLA_PREFIX/bin/git-cola
28 # This is the directory where git-cola will be installed
29 COLA_PREFIX
=${COLA_PREFIX:-"$HOME/apps/git-cola"}
31 COLA_NUM_JOBS
=${COLA_NUM_JOBS:-2}
32 COLA_QT
=${COLA_QT:-qt-x11-opensource-src-4.4.3}
33 COLA_PYQT
=${COLA_PYQT:-PyQt-x11-gpl-4.10.1}
34 COLA_SIP
=${COLA_SIP:-sip-4.14.6}
35 COLA_PYTHON
=${COLA_PYTHON:-Python-2.7.5}
38 mkdir
-p "$COLA_PREFIX"
40 rm -rf "$COLA_QT" "$COLA_PYQT" "$COLA_SIP" "$COLA_PYTHON"
42 tar -zxvf "$COLA_QT".
tar.gz
43 tar -zxvf "$COLA_PYQT".
tar.gz
44 tar -zxvf "$COLA_SIP".
tar.gz
45 tar -zxvf "$COLA_PYTHON".tgz
49 cd "$compile_top/$COLA_QT"
50 .
/configure
-prefix $install_dir -confirm-license
51 make -j "$COLA_NUM_JOBS" && make install
53 cd "$compile_top/$COLA_PYTHON"
54 .
/configure
--prefix=$install_dir --enable-unicode=ucs4
55 make -j "$COLA_NUM_JOBS" && make install
57 pybin
="$COLA_PREFIX/bin/python"
59 cd "$COMPILE_TOP/$COLA_SIP"
60 "$pybin" .
/configure.py
&&
61 make -j "$COLA_NUM_JOBS" && make install
63 cd "$compile_top/$COLA_PYQT"
64 "$pybin" .
/configure.py
-q "$COLA_PREFIX/bin/qmake" &&
65 make -j "$COLA_NUM_JOBS" && make install