Commit a816333a authored by Ben Gamari's avatar Ben Gamari 🐢

Add support for response files in wrapper script

Reviewers: O25 HSC2HS, hvr

Subscribers: ckoparkar

Differential Revision:
parent cd8da40c
...@@ -2,10 +2,26 @@ ...@@ -2,10 +2,26 @@
tflag="--template=$topdir/template-hsc.h" tflag="--template=$topdir/template-hsc.h"
Iflag="-I$topdir/include/" Iflag="-I$topdir/include/"
read_response() {
if [ -f "$response_file" ]; then
while read -r arg; do
case "$arg" in
-t*) tflag=;;
--template=*) tflag=;;
@*) read_response "${arg#"@"}" ;;
--) break;;
done < "$response_file"
for arg do for arg do
case "$arg" in case "$arg" in
-t*) tflag=;; -t*) tflag=;;
--template=*) tflag=;; --template=*) tflag=;;
@*) read_response "${arg#"@"}" ;;
--) break;; --) break;;
esac esac
done done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment