From: Rudolf Polzer Date: Tue, 18 Apr 2017 18:37:47 +0000 (-0400) Subject: qcc.sh: fix the contents of the dependencies file. X-Git-Tag: xonotic-v0.8.5~2831 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=699a2247a6560c2af0327ad62d41b8a91702ab0c;p=xonotic%2Fxonotic-data.pk3dir.git qcc.sh: fix the contents of the dependencies file. --- diff --git a/qcsrc/tools/qcc.sh b/qcsrc/tools/qcc.sh index 38c5c8634..15cbfc4aa 100755 --- a/qcsrc/tools/qcc.sh +++ b/qcsrc/tools/qcc.sh @@ -47,12 +47,13 @@ $(return >/dev/null 2>&1) || { IN=$3 case "${OUT}" in /*) + OUT_ABSOLUTE=${OUT} ;; *) - OUT=${PWD}/${OUT} + OUT_ABSOLUTE=${PWD}/${OUT} ;; esac set -x qpp "${IN}" "${OUT}" -I. ${QCCIDENT} ${QCCDEFS} > "${WORKDIR}/${MODE}.qc" - qcc ${QCCFLAGS} -o "${OUT}" "../${WORKDIR}/${MODE}.qc" + qcc ${QCCFLAGS} -o "${OUT_ABSOLUTE}" "../${WORKDIR}/${MODE}.qc" }