build: Set mandir only on Darwin when configuring Discount.

This commit is contained in:
Bradley Sepos 2016-03-23 16:39:17 -04:00
parent 5c121c3060
commit 6eb2679af5

View File

@ -5,6 +5,7 @@ SELF="${BASH_SOURCE[0]}"
BASE_DIR=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd -P)
BASE_DIR="${BASE_DIR:-$(pwd)}"
TOOLS_DIR="${BASE_DIR}/tools"
SYSTEM_NAME=$(uname -s)
# discount
function build_discount {
@ -12,7 +13,11 @@ function build_discount {
if make clean; then
make distclean
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
}