From b8d90528ac0b1bf49766a37c12c5e30999462313 Mon Sep 17 00:00:00 2001 From: TimePath Date: Sat, 2 Jan 2016 02:06:35 +0000 Subject: [PATCH] qcc.sh: fix read-only `sed -i` --- qcsrc/qcc.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.2