diff --git a/CMakeLists.txt b/CMakeLists.txt index 3598dfe..e3f3882 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.17) +cmake_minimum_required(VERSION 3.10) project (rp-scrabble) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") diff --git a/install.sh b/install.sh index 5a51c15..b7825ca 100755 --- a/install.sh +++ b/install.sh @@ -3,7 +3,7 @@ BUILD_DIR=build/ EXEC=rp-scrabble INSTALL_DIR=$HOME/.local/bin -LOG_DIR=$HOME/.local/rp-scrabble/logs +LOG_DIR=$HOME/.local/share/rp-scrabble/logs CMAKE_CHECK=$(cmake --version | grep version) @@ -57,8 +57,8 @@ esac echo "Making build directories..." -if [ ! -d "$BUILD_DIR" ]; then mkdir -p $BUILD_DIR; fi -if [ ! -d "$LOG_DIR" ]; then mkdir -p $LOG_DIR; fi +if [ ! -d "$BUILD_DIR" ]; then mkdir -vp $BUILD_DIR; fi +if [ ! -d "$LOG_DIR" ]; then mkdir -vp $LOG_DIR; fi cd $BUILD_DIR