summaryrefslogtreecommitdiff
path: root/dmd-wrapper
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2016-09-18 23:58:04 +0100
committerw0rp <devw0rp@gmail.com>2016-09-18 23:58:04 +0100
commit57ef2c98339af5fd40e99e44c420815f9ed0805f (patch)
tree8d3e085f9140576a9d6e4e04ad703154f84412a0 /dmd-wrapper
parente0fc0c7bb607760daa70ddd1a31fe1f30663e91f (diff)
downloadale-57ef2c98339af5fd40e99e44c420815f9ed0805f.zip
Add support for checking Haskell code via a wrapper script which can be used for other tools, and fix a readline problem with the DMD wrapper script.
Diffstat (limited to 'dmd-wrapper')
-rwxr-xr-xdmd-wrapper6
1 files changed, 3 insertions, 3 deletions
diff --git a/dmd-wrapper b/dmd-wrapper
index dd2bb53a..678aeb99 100755
--- a/dmd-wrapper
+++ b/dmd-wrapper
@@ -9,8 +9,8 @@ temp_file="$temp_file".d
trap "rm $temp_file" EXIT
-while read line; do
- echo "$line" >> "$temp_file"
+while read; do
+ echo "$REPLY" >> "$temp_file"
done
# Read imports from DUB.
@@ -24,7 +24,7 @@ while [ "$path" != '/' ]; do
cd "$path"
- while read import_line; do
+ while read import_line; do
import_line_options="$import_line_options -I$import_line"
done <<< "$(dub describe --import-paths)"