core-legacy/build.sh

37 lines
567 B
Bash
Raw Normal View History

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/
2019-08-22 19:38:23 +00:00
mkdir /srv/core/
2019-08-17 09:04:15 +00:00
cp config.json /srv/core
2019-08-22 19:38:23 +00:00
cp core /srv/core/