6 Commits
3 changed files with 29 additions and 10 deletions
+6 -1
View File
@@ -1,6 +1,11 @@
Version: 0.0.6
Version: 0.0.7
State: Development
CHANGES:
Version: 0.0.6
State: Stable
CHANGES:
* Added gvm pkg install to replace gvminstall
* Added a log folder for Go download/install logs
+1 -1
View File
@@ -1 +1 @@
0.0.6-dev
0.0.7-dev
+22 -8
View File
@@ -1,4 +1,11 @@
#!/bin/bash
if [ "$3" == "" ]; then
echo "Please specify package name"
exit 1
fi
cur_dir=`pwd`
cur_dirname=`pwd | awk '{ n=split($1,path,"/"); print path[n] }'`
cache_dir=$GVM_ROOT/archive/package/$3
source_dir=$GVM_ROOT/tmp/$3/src
build_dir=$GVM_ROOT/tmp/$3/build
@@ -43,17 +50,18 @@ function check_deps() {
if [ -e "$CUR_PKG/BUILD_VERSION" ]; then
echo "$line: `cat $CUR_PKG/BUILD_VERSION`" >> $build_dir/manifest
else
gvm pkg install $line
if [ $? -ne 0 ]; then
echo "Failed to install dependency $line"
exit 1
fi
#echo "ERROR: Couldnt find package: $line"
#exit 1
#gvm pkg install $line
#if [ $? -ne 0 ]; then
# echo "Failed to install dependency $line"
# exit 1
#fi
echo "ERROR: Couldnt find package: $line"
exit 1
fi
export GOPATH=$GOPATH:$CUR_PKG
done
fi
echo ":complete" >> $build_dir/manifest
}
function build_package() {
@@ -93,7 +101,13 @@ function cleanup() {
rm -rf $source_dir
}
download_package
#if [ "$cur_dirname" == "$package_name" ]; then
# cache_dir=$cur_dir
# BUILD_NUMBER=src
# echo "Using local source"
#else
download_package
#fi
setup_build_env
check_deps
build_package