Skip to content

Commit dbe9336

Browse files
committed
Rename script
1 parent bf8ca0b commit dbe9336

File tree

2 files changed

+33
-33
lines changed

2 files changed

+33
-33
lines changed

tools/scripts/check_gnu_make

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Check whether GNU make is installed.
4+
#
5+
# Usage: check_gnu_make
6+
#
7+
8+
# VARIABLES #
9+
10+
# Find GNU Make:
11+
GNU_MAKE=$(command -v make 2>/dev/null)
12+
13+
14+
# FUNCTIONS #
15+
16+
# Prints usage information.
17+
usage() {
18+
echo '' >&2
19+
echo 'Usage: check_gnu_make' >&2
20+
echo '' >&2
21+
}
22+
23+
# MAIN #
24+
25+
if [[ -x "${GNU_MAKE}" ]] && "${GNU_MAKE}" --version >/dev/null; then
26+
echo 'GNU make is installed.' >&2
27+
exit 0
28+
else
29+
echo 'ERROR: missing dependency. Please install GNU make (https://www.gnu.org/software/make). Once installed, run the command again.' >&2
30+
exit 1
31+
fi
32+
33+
# TODO: check for minimum version

tools/scripts/check_make

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)