curl -kOL https://github.com/faroe228/exp/archive/master.zip
# don't use above url ending with trunk.zip - keeps getting older version
# how to find groovy-#.#.#.jar
find . |grep -e "/groovy-[0-9]\+\.[0-9]\+\.[0-9]\+\.jar"
echo beg
`(find exp-master/orientdb |grep shutdown.sh)`
rm master.zip
rm -R exp-master
curl -kOL https://github.com/faroe228/exp/archive/master.zip
unzip master.zip
cd exp-master/orientdb
chmod +x gradlew
./gradlew installOrientDb
if [ `which nohup` ]
then
echo "### running ordb server in bg WITH nohup"
nohup ./gradlew run &
else
# Win Git Bash does not have nohup
echo "### running ordb server in bg WITHOUT nohup"
./gradlew run &
fi
sleep 10
./gradlew setupDb
echo end
svn --non-interactive --trust-server-cert export https://github.com/faroe228/exp/trunk exp-trunk
cd exp-trunk/orientdb
chmod +x gradlew
./gradlew installOrientDb
nohup ./gradlew run &
sleep 10
./gradlew setupDb
echo done
call curl -kOL https://github.com/faroe228/exp/archive/trunk.zip
call unzip trunk.zip
cd exp-trunk\orientdb
call gradlew installOrientDb
call gradlew run
cd exp-trunk\orientdb
call gradlew setupDb