mirror of https://github.com/gogits/gogs.git
Lunny Xiao
12 years ago
3 changed files with 50 additions and 14 deletions
@ -0,0 +1,20 @@ |
|||||||
|
#!/usr/bin/env bash |
||||||
|
|
||||||
|
if [ ! -f build.sh ]; then |
||||||
|
echo 'build.sh must be run within its container folder' 1>&2 |
||||||
|
exit 1 |
||||||
|
fi |
||||||
|
|
||||||
|
CURDIR=`pwd` |
||||||
|
NEWPATH="$GOPATH/src/github.com/gpmgo/gopm" |
||||||
|
if [ ! -d "$NEWPATH" ]; then |
||||||
|
ln -s $CURDIR $NEWPATH |
||||||
|
fi |
||||||
|
|
||||||
|
gofmt -w $CURDIR |
||||||
|
|
||||||
|
cd $NEWPATH |
||||||
|
go build |
||||||
|
cd $CURDIR |
||||||
|
|
||||||
|
echo 'Build successfully!' |
Loading…
Reference in new issue