]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
qcc.sh: fix read-only `sed -i`
authorTimePath <andrew.hardaker1995@gmail.com>
Sat, 2 Jan 2016 02:06:35 +0000 (02:06 +0000)
committerTimePath <andrew.hardaker1995@gmail.com>
Sat, 2 Jan 2016 02:06:35 +0000 (02:06 +0000)
qcsrc/qcc.sh

index 429771ce6f4411d7369bd52d041ba272222b8ca9..87fdc1593cc19de86869a1c2c9c1666f72adc391 100755 (executable)
@@ -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