mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-18 08:42:11 +03:00
5e9837828a
- Added initial implementations for terms and values - Error messages converted to pretty printer - Colorization for error messages - Color and console width option both as command line and repl command
21 lines
505 B
Plaintext
Executable File
21 lines
505 B
Plaintext
Executable File
# This test needs to run `idris2` from a sub-folder.
|
|
# Split path to `idris2` executable into dirname and basename.
|
|
# If the path is relative, add `..` to compensate for running `idris2` in a sub-folder.
|
|
case "$1" in
|
|
/*)
|
|
# Absolute path
|
|
IDRIS2_DIR="$(dirname "$1")"
|
|
;;
|
|
*)
|
|
# Relative path
|
|
IDRIS2_DIR="../$(dirname "$1")"
|
|
;;
|
|
esac
|
|
|
|
IDRIS2_EXEC="$(basename "$1")"
|
|
|
|
cd "folder with spaces" || exit
|
|
|
|
"$IDRIS2_DIR/$IDRIS2_EXEC" --no-color --no-banner Main.idr < ../input
|
|
rm -rf build
|