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: https://phabricator.haskell.org/D5238
parent cd8da40c
......@@ -2,10 +2,26 @@
tflag="--template=$topdir/template-hsc.h"
Iflag="-I$topdir/include/"
read_response() {
response_file=$1
if [ -f "$response_file" ]; then
while read -r arg; do
case "$arg" in
-t*) tflag=;;
--template=*) tflag=;;
@*) read_response "${arg#"@"}" ;;
--) break;;
esac
done < "$response_file"
fi
}
for arg do
case "$arg" in
-t*) tflag=;;
--template=*) tflag=;;
@*) read_response "${arg#"@"}" ;;
--) break;;
esac
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