mirror of
https://github.com/HandBrake/HandBrake-docs.git
synced 2025-12-10 17:47:51 -06:00
build: Set mandir only on Darwin when configuring Discount.
This commit is contained in:
parent
5c121c3060
commit
6eb2679af5
@ -5,6 +5,7 @@ SELF="${BASH_SOURCE[0]}"
|
|||||||
BASE_DIR=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd -P)
|
BASE_DIR=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd -P)
|
||||||
BASE_DIR="${BASE_DIR:-$(pwd)}"
|
BASE_DIR="${BASE_DIR:-$(pwd)}"
|
||||||
TOOLS_DIR="${BASE_DIR}/tools"
|
TOOLS_DIR="${BASE_DIR}/tools"
|
||||||
|
SYSTEM_NAME=$(uname -s)
|
||||||
|
|
||||||
# discount
|
# discount
|
||||||
function build_discount {
|
function build_discount {
|
||||||
@ -12,7 +13,11 @@ function build_discount {
|
|||||||
if make clean; then
|
if make clean; then
|
||||||
make distclean
|
make distclean
|
||||||
fi
|
fi
|
||||||
./configure.sh --mandir=/usr/local/share/man
|
if [[ "${SYSTEM_NAME}" == "Darwin" ]]; then
|
||||||
|
./configure.sh --mandir=/usr/local/share/man
|
||||||
|
else
|
||||||
|
./configure.sh
|
||||||
|
fi
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user