Files
leanote/app/bin/run.sh

20 lines
460 B
Bash
Raw Normal View History

2014-05-07 13:47:12 +08:00
#!/bin/sh
SCRIPTPATH=$(cd "$(dirname "$0")"; pwd)
# set link
path="$SCRIPTPATH/src/github.com/leanote"
if [ ! -d "$path" ]; then
mkdir -p "$path"
fi
ln -s ../../../../ $SCRIPTPATH/src/github.com/leanote/leanote
# set GOPATH
export GOPATH=$GOPATH:$SCRIPTPATH
# run
osName=`uname`
if [ $osName == "Darwin" ]; then
"$SCRIPTPATH/leanote-mac" -importPath github.com/leanote/leanote
else
"$SCRIPTPATH/leanote-linux" -importPath github.com/leanote/leanote
fi