This commit is contained in:
Liang Ding 2015-08-20 21:47:00 +08:00
parent 0a96f993fb
commit eaa93281d1
1 changed files with 12 additions and 18 deletions

28
pkg.sh
View File

@ -19,69 +19,63 @@ echo target=${target}
## darwin ## darwin
os=darwin os=darwin
echo wide-${ver}-${GOOS}-${GOARCH}.tar.gz
export GOOS=${os} export GOOS=${os}
export GOARCH=386 export GOARCH=386
go build go build
go build github.com/visualfc/gotools go build github.com/visualfc/gotools
go build github.com/nsf/gocode go build github.com/nsf/gocode
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/gotools .
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/gocode .
tar zcvf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} gotools gocode wide --exclude-vcs --exclude='conf/*.go' --exclude='i18n/*.go' tar zcvf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} gotools gocode wide --exclude-vcs --exclude='conf/*.go' --exclude='i18n/*.go'
rm -f wide gotools gocode rm -f wide gotools gocode
echo wide-${ver}-${GOOS}-${GOARCH}.tar.gz
export GOOS=${os} export GOOS=${os}
export GOARCH=amd64 export GOARCH=amd64
go build go build
go build github.com/visualfc/gotools go build github.com/visualfc/gotools
go build github.com/nsf/gocode go build github.com/nsf/gocode
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/gotools . tar zvf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} gotools gocode wide --exclude-vcs --exclude='conf/*.go' --exclude='i18n/*.go'
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/gocode .
tar zcvf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} gotools gocode wide --exclude-vcs --exclude='conf/*.go' --exclude='i18n/*.go'
rm -f wide gotools gocode rm -f wide gotools gocode
## linux ## linux
os=linux os=linux
echo wide-${ver}-${GOOS}-${GOARCH}.tar.gz
export GOOS=${os} export GOOS=${os}
export GOARCH=386 export GOARCH=386
go build go build
go build github.com/visualfc/gotools go build github.com/visualfc/gotools
go build github.com/nsf/gocode go build github.com/nsf/gocode
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/gotools . tar zvf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} gotools gocode wide --exclude-vcs --exclude='conf/*.go' --exclude='i18n/*.go'
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/gocode .
tar zcvf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} gotools gocode wide --exclude-vcs --exclude='conf/*.go' --exclude='i18n/*.go'
rm -f wide gotools gocode rm -f wide gotools gocode
echo wide-${ver}-${GOOS}-${GOARCH}.tar.gz
export GOOS=${os} export GOOS=${os}
export GOARCH=amd64 export GOARCH=amd64
go build go build
go build github.com/visualfc/gotools go build github.com/visualfc/gotools
go build github.com/nsf/gocode go build github.com/nsf/gocode
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/gotools . tar zvf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} gotools gocode wide --exclude-vcs --exclude='conf/*.go' --exclude='i18n/*.go'
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/gocode .
tar zcvf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} gotools gocode wide --exclude-vcs --exclude='conf/*.go' --exclude='i18n/*.go'
rm -f wide gotools gocode rm -f wide gotools gocode
## windows ## windows
os=windows os=windows
echo wide-${ver}-${GOOS}-${GOARCH}.zip
export GOOS=${os} export GOOS=${os}
export GOARCH=386 export GOARCH=386
go build go build
go build github.com/visualfc/gotools go build github.com/visualfc/gotools
go build github.com/nsf/gocode go build github.com/nsf/gocode
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/gotools.exe . zip -rq ${target}/wide-${ver}-${GOOS}-${GOARCH}.zip ${list} gotools.exe gocode.exe wide.exe --exclude=conf/*.go --exclude=i18n/*.go
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/gocode.exe .
zip -r ${target}/wide-${ver}-${GOOS}-${GOARCH}.zip ${list} gotools.exe gocode.exe wide.exe --exclude=conf/*.go --exclude=i18n/*.go
rm -f wide.exe gotools.exe gocode.exe rm -f wide.exe gotools.exe gocode.exe
echo wide-${ver}-${GOOS}-${GOARCH}.zip
export GOOS=${os} export GOOS=${os}
export GOARCH=amd64 export GOARCH=amd64
go build go build
go build github.com/visualfc/gotools go build github.com/visualfc/gotools
go build github.com/nsf/gocode go build github.com/nsf/gocode
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/gotools.exe . zip -rq ${target}/wide-${ver}-${GOOS}-${GOARCH}.zip ${list} gotools.exe gocode.exe wide.exe --exclude=conf/*.go --exclude=i18n/*.go
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/gocode.exe .
zip -r ${target}/wide-${ver}-${GOOS}-${GOARCH}.zip ${list} gotools.exe gocode.exe wide.exe --exclude=conf/*.go --exclude=i18n/*.go
rm -f wide.exe gotools.exe gocode.exe rm -f wide.exe gotools.exe gocode.exe