mirror of
https://github.com/wahyd4/gvm.git
synced 2026-08-09 04:46:19 +10:00
58 lines
1021 B
Bash
Executable File
58 lines
1021 B
Bash
Executable File
#!/usr/bin/env bash
|
|
. "$GVM_ROOT/scripts/functions"
|
|
|
|
error_message=""
|
|
|
|
# Check for git
|
|
which git &> /dev/null ||
|
|
error_message="${error_message}
|
|
Could not find git
|
|
|
|
linux: apt-get install mercurial
|
|
mac: brew install mercurial
|
|
"
|
|
# Check for ar
|
|
which ar &> /dev/null ||
|
|
error_message="${error_message}
|
|
Could not find binutils
|
|
|
|
linux: apt-get install binutils
|
|
"
|
|
# Check for bison
|
|
which bison &> /dev/null ||
|
|
error_message="${error_message}
|
|
Could not find bison
|
|
|
|
linux: apt-get install bison
|
|
"
|
|
# Check for gcc
|
|
which gcc &> /dev/null ||
|
|
error_message="${error_message}
|
|
Could not find gcc
|
|
|
|
linux: apt-get install gcc
|
|
"
|
|
# Check for make
|
|
which make &> /dev/null ||
|
|
error_message="${error_message}
|
|
Could not find make
|
|
|
|
linux: apt-get install make
|
|
"
|
|
# Check for curl
|
|
which curl &> /dev/null ||
|
|
error_message="${error_message}
|
|
Could not find curl
|
|
|
|
linux: apt-get install curl
|
|
mac: brew install curl
|
|
"
|
|
|
|
if [ -n "$error_message" ]; then
|
|
display_warning "$error_message"
|
|
exit 1
|
|
else
|
|
# All good!
|
|
exit 0
|
|
fi
|