From: TimePath Date: Sat, 2 Jan 2016 02:06:35 +0000 (+0000) Subject: qcc.sh: fix read-only `sed -i` X-Git-Tag: xonotic-v0.8.2~1325 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b8d90528ac0b1bf49766a37c12c5e30999462313;p=xonotic%2Fxonotic-data.pk3dir.git qcc.sh: fix read-only `sed -i` --- diff --git a/qcsrc/qcc.sh b/qcsrc/qcc.sh index 429771ce6..87fdc1593 100755 --- a/qcsrc/qcc.sh +++ b/qcsrc/qcc.sh @@ -19,8 +19,8 @@ esac CPP="${CPP} -I. ${QCCIDENT} ${QCCDEFS} -D${PROG}" set -x -${CPP} -CC -MMD -MP -MT ${OUT} -Wall -Wundef -Werror -o ./tmp/${MODE}.qc ${IN} +${CPP} -MMD -MP -MT ${OUT} -Wall -Wundef -Werror -o ./tmp/${MODE}.txt ${IN} ${CPP} -dM 1>./tmp/${MODE}_macros.txt -H 2>./tmp/${MODE}_includes.txt ${IN} -sed -i 's/^#\(line\)\? \([[:digit:]]\+\) "\(.*\)".*/\n#pragma file(\3)\n#pragma line(\2)/g' ./tmp/${MODE}.qc +sed 's/^#\(line\)\? \([[:digit:]]\+\) "\(.*\)".*/\n#pragma file(\3)\n#pragma line(\2)/g' ./tmp/${MODE}.txt > ./tmp/${MODE}.qc cd ${MODE} ${QCC} ${QCCFLAGS} -o ../${OUT} ../tmp/${MODE}.qc