bond.1.md 1.07 KB
Newer Older
1 2 3 4 5 6 7 8
% BOND(1)
% Afif Elghraoui <afif@ghraoui.name>
% May 2016

# NAME

bond - change name space

Afif Elghraoui's avatar
Afif Elghraoui committed
9 10 11 12
# SYNOPSIS

**bond** *prefix*

13 14
# DESCRIPTION

15 16
**bond** activates a directory for use as an installation prefix.
It works by setting an array of standard environment variables so that installations to the given *prefix* can be directly used by standard tools with no further action.
17

18 19 20 21
# BUGS

Please see <https://gitlab.com/afif/bond/issues> for known issues or to report new ones.

Afif Elghraoui's avatar
Afif Elghraoui committed
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
# EXAMPLE

Prepare a directory to use as an installation prefix.

	mkdir local
	basedir="$PWD/local"

Bond it.

	bond "$basedir"

Install programs to this folder.
For any program you want to install, set the prefix to the bonded folder.

Perl module:

	perl Makefile.PL INSTALL_BASE="$basedir"
	make
	make install

Autoconfiscated package:

	./configure --prefix="$basedir"
	make
	make install

These packages should now be available for use within the current and any child shell as if they were centrally installed.

50 51 52 53 54 55 56
# SEE ALSO

http://man.cat-v.org/plan_9/1/bind

http://man.cat-v.org/plan_9/4/namespace

**module** (1)