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.

This commit is contained in:
w0rp
2016-09-18 23:58:04 +01:00
parent e0fc0c7bb6
commit 57ef2c9833
5 changed files with 107 additions and 4 deletions

View File

@@ -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)"