mirror of
https://github.com/wahyd4/gvm.git
synced 2026-08-09 12:56:41 +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.
39 lines
942 B
Bash
Executable File
39 lines
942 B
Bash
Executable File
#!/usr/bin/env bash
|
|
. $GVM_ROOT/scripts/functions
|
|
|
|
[[ $gvm_go_name != "" ]] ||
|
|
display_fatal "No Go version selected"
|
|
[[ -d $GVM_ROOT/gos/$gvm_go_name ]] ||
|
|
display_fatal "Invalid or corrupt Go version"
|
|
[[ -d $GVM_ROOT/pkgsets/$gvm_go_name ]] ||
|
|
display_fatal "Missing package set folder for this Go version"
|
|
|
|
command=$1
|
|
if [[ -f $GVM_ROOT/scripts/pkgset-$command ]]; then
|
|
shift
|
|
$GVM_ROOT/scripts/pkgset-$command $@
|
|
elif [[ -n $command ]]; then
|
|
display_fatal "Unrecognized command line argument: '$command'"
|
|
else
|
|
echo "= gvm pkgset
|
|
|
|
* http://github.com/moovweb/gvm
|
|
|
|
== DESCRIPTION:
|
|
|
|
GVM pkgset is used to manage various Go packages
|
|
|
|
== Usage
|
|
|
|
gvm pkgset Command
|
|
|
|
== Command
|
|
|
|
create - create a new package set
|
|
delete - delete a package set
|
|
use - select where gb and goinstall target and link
|
|
empty - remove all code and compiled binaries from package set
|
|
list - list installed go packages"
|
|
fi
|
|
|