mirror of
https://github.com/wahyd4/gvm.git
synced 2026-08-09 04:46:19 +10:00
FreeBSD does not by default install the Bourne-Again Shell (bash); and when it is installed, it is most certainly not installed to ``/bin/bash`` due to the nuances of the conventions around local site packages. Rather, it is installed to ``/usr/local/bin/bash``. Golang explicitly supports FreeBSD, so it should only be reasonable for GVM to support this target, too. As a fix, the shell script shebang definitions now use the ``env`` tool that comes from the _coreutils_ standard package, which is installed on all conventions-adhering Linux distributions, Mac OS X, and FreeBSD. FreeBSD prerequisites are now listed in the documentation. I have tested this against FreeBSD 9.0 release branch on the amd64, and it works satisfactorily now.
38 lines
738 B
Bash
Executable File
38 lines
738 B
Bash
Executable File
#!/usr/bin/env bash
|
|
. $GVM_ROOT/scripts/functions
|
|
|
|
# Check for hg
|
|
which hg &> /dev/null ||
|
|
display_warning "Could not find mercurial
|
|
|
|
linux: apt-get install mercurial
|
|
mac: brew install mercurial
|
|
" || exit 1
|
|
# Check for ar
|
|
which ar &> /dev/null ||
|
|
display_warning "Could not find binutils
|
|
|
|
linux: apt-get install binutils
|
|
" || exit 1
|
|
# Check for bison
|
|
which bison &> /dev/null ||
|
|
display_warning "Could not find bison
|
|
|
|
linux: apt-get install bison
|
|
" || exit 1
|
|
# Check for gcc
|
|
which gcc &> /dev/null ||
|
|
display_warning "Could not find gcc
|
|
|
|
linux: apt-get install gcc
|
|
" || exit 1
|
|
# Check for make
|
|
which make &> /dev/null ||
|
|
display_warning "Could not find make
|
|
|
|
linux: apt-get install make
|
|
" || exit 1
|
|
|
|
# All good!
|
|
exit 0
|