Package install is nearly complete. Need to work out an API for listing .a files and their $GOARCH

This commit is contained in:
Joshua Bussdieker
2011-11-18 04:42:19 -08:00
parent 57a68547f1
commit 79bb6611ca
7 changed files with 27 additions and 5 deletions
+1
View File
@@ -1 +1,2 @@
gos/
packages/
+1
View File
@@ -9,6 +9,7 @@ if [[ $1 == "install" ]]; then
hg clone -u release.r$2 https://go.googlecode.com/hg/ $INSTALL_ROOT > /dev/null 2>&1
echo " * Compiling..."
cd $INSTALL_ROOT/src;unset GOROOT;./all.bash > /dev/null 2>&1
mkdir $GVM_ROOT/packages/go-$2
exit 0
else
echo "ERROR: Unknown go release version: '$2'"
+7 -1
View File
@@ -1,6 +1,12 @@
#!/bin/bash
if [[ $1 == "package" ]] && [[ $2 == "install" ]]; then
echo "GOOD JOB!"
if [[ -n $4 ]]; then
git clone git@github.com:moovweb/$3 $GVM_ROOT/packages/default/$3-$4
git checkout $4
else
echo "ERROR: Please specifiy the version"
exit 1
fi
else
echo "Please use gvm [action] to call this file"
exit 1
+1 -1
View File
@@ -1,6 +1,6 @@
#!/bin/bash
if [[ $1 == "package" ]] && [[ $2 == "list" ]]; then
echo "GOOD JOB!"
ls -1 $GVM_ROOT/packages/default
else
echo "Please use gvm [action] to call this file"
exit 1
+2
View File
@@ -3,6 +3,8 @@ if [[ $1 == "use" ]]; then
if [[ -n $2 ]]; then
rm -f ~/.gvm/gos/default
ln -s ~/.gvm/gos/go-$2 ~/.gvm/gos/default
rm -f ~/.gvm/packages/default
ln -s ~/.gvm/packages/go-$2 ~/.gvm/packages/default
echo "Now using version $2"
exit 0
else
+11
View File
@@ -0,0 +1,11 @@
gvm: all
echo $(pkgdir)
echo _obj/$(TARG).a
# make $(GVM_ROOT)/scripts/Make.pkg all
#
#all: $(INSTALLFILES)
# echo $(INSTALLFILES)
#gvminstall: $(INSTALLFILES)
# ifdef GVM_PACKAGE_INSTALL
# include $(GOROOT)/src/Makeaaa.pkg
# endif
+4 -3
View File
@@ -1,4 +1,5 @@
export GVM_VERSION=`cat ~/.gvm/VERSION`
export GOROOT=~/.gvm/gos/default
export PATH=$PATH:~/.gvm/bin:~/.gvm/gos/default/bin
export GVM_ROOT=~/.gvm
export GVM_VERSION=`cat $GVM_ROOT/VERSION`
export GOROOT=$GVM_ROOT/gos/default
export PATH=$PATH:$GVM_ROOT/bin:$GVM_ROOT/gos/default/bin