2019-08-06 22:01:01 +00:00
|
|
|
current_dir="${PWD}"
|
|
|
|
|
|
|
|
#The folder in which we will build emgauwa
|
|
|
|
build_dir='./build'
|
|
|
|
if [ -d $build_dir ]; then
|
|
|
|
echo "Deleted folder: ${build_dir}"
|
|
|
|
rm -rf $build_dir
|
|
|
|
fi
|
|
|
|
|
|
|
|
#Create building folder
|
|
|
|
echo "Created building folder: ${build_dir}"
|
|
|
|
mkdir $build_dir
|
|
|
|
|
|
|
|
echo "Entering folder: ${build_dir}"
|
|
|
|
cd $build_dir
|
|
|
|
|
|
|
|
echo "Start building emgauwa ..."
|
|
|
|
cmake ..
|
|
|
|
|
|
|
|
#If errors then exit
|
|
|
|
if [ "$?" != "0" ]; then
|
|
|
|
exit -1
|
|
|
|
fi
|
|
|
|
|
|
|
|
make
|
|
|
|
|
|
|
|
#If errors then exit
|
|
|
|
if [ "$?" != "0" ]; then
|
|
|
|
exit -1
|
|
|
|
fi
|
|
|
|
|
2019-08-17 09:04:15 +00:00
|
|
|
cp core /bin/
|
|
|
|
|
|
|
|
mkdir /srv/core
|
|
|
|
cp config.json /srv/core
|