chocpkg/setup.sh
Simon Howard cb4b2cbdd6 Add separate install path for native tools.
We need to distinguish between tools we compile to use as part of the
build process, and things we build for the eventual target. Install
these into separate install directories; for now, pkg-config is the
only one of these.
2016-02-17 00:19:13 -05:00

24 lines
501 B
Bash

CHOCPKG_ROOT=$HOME/chocolate-doom-build
export CHOCPKG_ROOT
# Build directory must not contain a space, or bad things happen:
case "$CHOCPKG_ROOT" in
*\ *)
cat <<END
The path to your home directory contains a space:
HOME=$HOME
This script will probably fail to build - reset HOME to point
somewhere else. For example, type:
mkdir /home/user
HOME=/home/user
END
exit -1
esac
# Set up various environment variables:
PATH="$CHOCPKG_ROOT/chocpkg:$CHOCPKG_ROOT/install.native/bin:$PATH"