Fix chez017 for Windows

This commit is contained in:
Niklas Larsson 2020-05-22 12:30:44 +02:00
parent e30f7ef3ed
commit 09ea6af22f
2 changed files with 7 additions and 2 deletions

View File

@ -1,7 +1,7 @@
File Exists
False
True
Just "__PWD__/testdir"
Just "__PWD__testdir"
1/1: Building dir (dir.idr)
Main> Main> Bye for now!
hello

View File

@ -1,3 +1,8 @@
#!/usr/bin/env sh
if [ $OS == "windows" ]; then
MY_PWD="$(cygpath -m $(pwd) | sed -e 's#/#\\\\\\\\#g')\\\\\\\\"
else
MY_PWD=$(pwd)/
fi
sed -e "s|__PWD__|$(pwd)|g" expected.in > expected
sed -e "s|__PWD__|${MY_PWD}|g" expected.in > expected