Modify some comments

This commit is contained in:
antao 2018-11-16 18:25:41 +08:00
parent cef1d20266
commit c23d7417a8
1 changed files with 9 additions and 9 deletions

View File

@ -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