Modify some comments
This commit is contained in:
parent
cef1d20266
commit
c23d7417a8
18
build.sh
18
build.sh
|
@ -3,20 +3,20 @@
|
||||||
#building drogon
|
#building drogon
|
||||||
function build_drogon() {
|
function build_drogon() {
|
||||||
|
|
||||||
#update the submodule and initialize
|
#Update the submodule and initialize
|
||||||
git submodule update --init
|
git submodule update --init
|
||||||
|
|
||||||
#saving current directory
|
#Saving current directory
|
||||||
current_dir="${PWD}"
|
current_dir="${PWD}"
|
||||||
|
|
||||||
#the folder we will build
|
#The folder we will build
|
||||||
build_dir='./build'
|
build_dir='./build'
|
||||||
if [ -d $build_dir ]; then
|
if [ -d $build_dir ]; then
|
||||||
echo "Deleted folder: ${build_dir}"
|
echo "Deleted folder: ${build_dir}"
|
||||||
rm -rf $build_dir
|
rm -rf $build_dir
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#creating building folder
|
#Creating building folder
|
||||||
echo "Created building folder: ${build_dir}"
|
echo "Created building folder: ${build_dir}"
|
||||||
mkdir $build_dir
|
mkdir $build_dir
|
||||||
|
|
||||||
|
@ -26,24 +26,24 @@ function build_drogon() {
|
||||||
echo "Start building drogon ..."
|
echo "Start building drogon ..."
|
||||||
cmake ..
|
cmake ..
|
||||||
|
|
||||||
#errors exit
|
#If errors then exit
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
make
|
make
|
||||||
|
|
||||||
#errors exit
|
#If errors then exit
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Installing header files ..."
|
echo "Installing ..."
|
||||||
sudo make install
|
sudo make install
|
||||||
|
|
||||||
#reback current directory
|
#Reback current directory
|
||||||
cd $current_dir
|
cd $current_dir
|
||||||
#ok!
|
#Ok!
|
||||||
}
|
}
|
||||||
|
|
||||||
build_drogon
|
build_drogon
|
||||||
|
|
Loading…
Reference in New Issue