Skip to content

Latest commit

 

History

History
49 lines (42 loc) · 918 Bytes

README.md

File metadata and controls

49 lines (42 loc) · 918 Bytes

ct-ng-env

Small tool for managing crosstool-ng installations, similiar to python's virtual environment.

Prerequisites

apt install \
    autoconf \
    build-essential \
    bzip2 \
    curl \
    flex \
    gawk \
    git \
    help2man \
    libncurses-dev \
    libtool-bin \
    make \
    texinfo \
    unzip \
    wget \
    yacc \
    xz-utils

Installation

Clone the repository and link the ct-ng-env script to one of your PATH's binary directories

Usage

$ ct-ng-env help
ct-ng-env <branch|tag|commit> <path>
$ mkdir ~/.ct-ng-envs
$ ct-ng-env master ~/.ct-ng-envs/master
$ ct-ng-env ea38601 ~/.ct-ng-envs/ea38601

$ source ~/.ct-ng-envs/master/activate
(ct-ng-master) $ which ct-ng
/home/tekieli/.ct_ng_envs/master/bin/ct-ng
$ deactivate

$ source ~/.ct-ng-envs/ea38601/activate
(ct-ng-ea38601) $ which ct-ng
/home/tekieli/.ct_ng_envs/ea38601/bin/ct-ng
$ deactivate