We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ceeacf4 commit 3def87dCopy full SHA for 3def87d
util/run-gnu-test.sh
@@ -8,18 +8,9 @@
8
# * note: to run a single test => `make check TESTS=PATH/TO/TEST/SCRIPT SUBDIRS=. VERBOSE=yes`
9
10
# Use GNU version for make, nproc, readlink on *BSD
11
-case "$OSTYPE" in
12
- *bsd*)
13
- MAKE="gmake"
14
- NPROC="gnproc"
15
- READLINK="greadlink"
16
- ;;
17
- *)
18
- MAKE="make"
19
- NPROC="nproc"
20
- READLINK="readlink"
21
22
-esac
+MAKE=$(command -v gmake||command -v make)
+NPROC=$(command -v gnproc||command -v nproc)
+READLINK=$(command -v greadlink||command -v readlink)
23
24
ME_dir="$(dirname -- "$("${READLINK}" -fm -- "$0")")"
25
REPO_main_dir="$(dirname -- "${ME_dir}")"
0 commit comments