This commit is contained in:
Liang Ding 2015-08-20 21:52:35 +08:00
parent eaa93281d1
commit 3f8544442d
1 changed files with 8 additions and 8 deletions

16
pkg.sh
View File

@ -19,18 +19,18 @@ 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
echo wide-${ver}-${GOOS}-${GOARCH}.tar.gz
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
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
echo wide-${ver}-${GOOS}-${GOARCH}.tar.gz
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
@ -40,18 +40,18 @@ 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
echo wide-${ver}-${GOOS}-${GOARCH}.tar.gz
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
tar zvf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} gotools gocode wide --exclude-vcs --exclude='conf/*.go' --exclude='i18n/*.go' tar zvf ${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
echo wide-${ver}-${GOOS}-${GOARCH}.tar.gz
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
@ -61,21 +61,21 @@ 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
echo wide-${ver}-${GOOS}-${GOARCH}.zip
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
zip -rq ${target}/wide-${ver}-${GOOS}-${GOARCH}.zip ${list} gotools.exe gocode.exe wide.exe --exclude=conf/*.go --exclude=i18n/*.go zip -r -q ${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
echo wide-${ver}-${GOOS}-${GOARCH}.zip
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
zip -rq ${target}/wide-${ver}-${GOOS}-${GOARCH}.zip ${list} gotools.exe gocode.exe wide.exe --exclude=conf/*.go --exclude=i18n/*.go zip -r -q ${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