mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-25 04:33:45 +03:00
c4b41ee1ff
`realpath` is no longer needed to run executables.
14 lines
256 B
Plaintext
Executable File
14 lines
256 B
Plaintext
Executable File
rm -rf build
|
|
|
|
rm -f expected
|
|
|
|
if ! NProcs=$(nproc || sysctl -n hw.ncpu) 2>/dev/null; then
|
|
echo "Command 'nproc' not found." >&2
|
|
exit 1
|
|
fi
|
|
|
|
echo "$NProcs processors" > expected
|
|
|
|
$1 --no-banner --no-color --console-width 0 NumProcessors.idr --exec main
|
|
|