mirror of
https://github.com/chocolate-doom/chocpkg.git
synced 2024-12-11 13:01:00 +00:00
cb4b2cbdd6
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.
24 lines
501 B
Bash
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"
|
|
|