]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
qcc.sh: fix the contents of the dependencies file.
authorRudolf Polzer <divVerent@xonotic.org>
Tue, 18 Apr 2017 18:37:47 +0000 (14:37 -0400)
committerRudolf Polzer <divVerent@xonotic.org>
Tue, 18 Apr 2017 18:37:59 +0000 (14:37 -0400)
qcsrc/tools/qcc.sh

index 38c5c86340a28e6087e31960578dc0c6a1e11740..15cbfc4aab5a222f8a06da9091884057c5f84fe3 100755 (executable)
@@ -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"
 }