Skip to content

Latest commit

 

History

History
82 lines (47 loc) · 2.37 KB

README.rst

File metadata and controls

82 lines (47 loc) · 2.37 KB

Builds optimized version of tig (including potential patches) into custom location on Debian flavoured systems.

Supports:

  • multiple release versions
  • latest release version
  • git version (by specifying branch or commit)
  • building per user then "installing" system wide

Limitations:

  • no static build

First, you need to install a few required packages — and no, this is not optional in any way. They require about 230 MB disk space. These steps must be performed by the root user (i.e. in a root shell, or by writing sudo before the actual command):

apt-get update
apt-get install sudo coreutils binutils build-essential git time \
    curl locales autoconf automake pkg-config \
    libncursesw5 libreadline7 libtinfo5 \
    libncursesw5-dev libreadline-dev libtinfo-dev
mkdir -p ~/src/; cd ~/src/
git clone https://github.com/chros73/build-tig.git
cd build-tig

It has to be compiled this way first. Build script creates local CPU optimized code by default.

It will build tig binary into ~/lib/tig* directory and create symlinks to it, e.g. in ~/bin/ directory.

time nice -n 19 ./build.sh tig

You can compile the latest release version or the specified git version by adding a latest or git second argument to the above commands.

If you want to turn off optimization for some reason (e.g. debugging or moving the build to a different box) it can be done by adding optimize_build=no in front of the above command, e.g.:

optimize_build=no time nice -n 19 ./build.sh tig git

It installs (copies) the compiled tig binary into /opt/tig* directory and creates symlinks to it, e.g. in /usr/local/bin/ directory. Needs root shell, or by writing sudo before the actual command:

./build.sh install

If you specified a second argument (latest or git) during compilation then you have to use the same here as well.

See CHANGELOG.md for more details.