use gx for package management
This commit is contained in:
parent
8d83e4dbaf
commit
8ac1c210f2
25
build.sh
25
build.sh
@ -16,18 +16,39 @@ for arg in $@ ; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
rev="QmSLsdX9BQ1f9sBeuMeLnrmFEWQiNJG9nRmgi4Pua2Ui3y"
|
||||||
|
|
||||||
|
_next=""
|
||||||
# check for build flags
|
# check for build flags
|
||||||
for arg in $@ ; do
|
for arg in $@ ; do
|
||||||
case $arg in
|
case $arg in
|
||||||
"--disable-redis")
|
"--disable-redis")
|
||||||
tags="$tags -tags disable_redis"
|
tags="$tags -tags disable_redis"
|
||||||
;;
|
;;
|
||||||
|
"--revision")
|
||||||
|
_next="rev"
|
||||||
|
;;
|
||||||
|
"--revision=*")
|
||||||
|
rev=$(echo $arg | cut -d'=' -f2)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
if [ "x$_next" == "xrev" ] ; then
|
||||||
|
rev="$arg"
|
||||||
|
fi
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ "x$rev" == "x" ] ; then
|
||||||
|
echo "revision not specified"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
cd $root
|
cd $root
|
||||||
export GOPATH=$root/go
|
export GOPATH=$root/go
|
||||||
mkdir -p $GOPATH
|
mkdir -p $GOPATH
|
||||||
go get -v -u $tags github.com/majestrate/srndv2
|
echo "obtaining gx"
|
||||||
cp -a $GOPATH/bin/srndv2 $root
|
go get -v github.com/whyrusleeping/gx-go
|
||||||
|
gx install --global
|
||||||
|
go get -v gx/ipfs/$rev/srndv2
|
||||||
|
cp $GOPATH/bin/srndv2 $root
|
||||||
echo "Built"
|
echo "Built"
|
||||||
|
@ -3,6 +3,12 @@
|
|||||||
"author": "jeff",
|
"author": "jeff",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"gxDependencies": [
|
"gxDependencies": [
|
||||||
|
{
|
||||||
|
"author": "jeff",
|
||||||
|
"name": "srndv2",
|
||||||
|
"hash": "QmSLsdX9BQ1f9sBeuMeLnrmFEWQiNJG9nRmgi4Pua2Ui3y",
|
||||||
|
"version": "0.0.0"
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"language": "go",
|
"language": "go",
|
||||||
"issues_url": "https://github.com/majestrate/nntpchan",
|
"issues_url": "https://github.com/majestrate/nntpchan",
|
||||||
|
Reference in New Issue
Block a user