mirror of https://github.com/gogits/gogs.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
313 B
21 lines
313 B
12 years ago
|
#!/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!'
|