Skip to content
Snippets Groups Projects
Commit a816333a authored by Ben Gamari's avatar Ben Gamari :turtle:
Browse files

Add support for response files in wrapper script

Reviewers: O25 HSC2HS, hvr

Subscribers: ckoparkar

Differential Revision: https://phabricator.haskell.org/D5238
parent cd8da40c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment