xorm/install

21 lines
319 B
Plaintext
Raw Normal View History

2013-05-03 07:26:51 +00:00
#!/usr/bin/env bash
if [ ! -f install ]; then
echo 'install must be run within its container folder' 1>&2
exit 1
fi
CURDIR=`pwd`
2013-10-14 07:40:24 +00:00
NEWPATH="$GOPATH/src/github.com/lunny/${PWD##*/}"
2013-05-03 07:26:51 +00:00
if [ ! -d "$NEWPATH" ]; then
ln -s $CURDIR $NEWPATH
fi
gofmt -w $CURDIR
cd $NEWPATH
go install ${PWD##*/}
cd $CURDIR
echo 'finished'