scripts: replaced echo with echo -e for color in linux (maybe windows)
This commit is contained in:
+7
-7
@@ -19,7 +19,7 @@ MY_PATH=`dirname "$0"`
|
||||
cd $MY_PATH/..
|
||||
|
||||
# git settings
|
||||
echo $INFO "install git settings"
|
||||
echo -e $INFO "install git settings"
|
||||
|
||||
git config commit.template .git_commit_template.txt
|
||||
git config color.ui true
|
||||
@@ -27,7 +27,7 @@ cp .git_pre_commit_hook.sh .git/hooks/pre-commit
|
||||
|
||||
|
||||
# Create Debug and Release folders
|
||||
echo $INFO "create build folders"
|
||||
echo -e $INFO "create build folders"
|
||||
|
||||
mkdir -p build
|
||||
mkdir -p lib
|
||||
@@ -36,11 +36,11 @@ mkdir -p bin/Release
|
||||
|
||||
# Copy necessary dynamic libraries to bin folder
|
||||
if [ $PLATFORM == "Windows" ]; then
|
||||
echo $INFO "copy dynamic libraries"
|
||||
echo -e $INFO "copy dynamic libraries"
|
||||
cp -u -r setup/dynamic_libraries/windows/Debug/* bin/Debug
|
||||
cp -u -r setup/dynamic_libraries/windows/Release/* bin/Release
|
||||
|
||||
echo $INFO "copy test_main file"
|
||||
echo -e $INFO "copy test_main file"
|
||||
cp -u setup/cxx_test/windows/test_main.cpp build
|
||||
fi
|
||||
|
||||
@@ -49,11 +49,11 @@ if [ $PLATFORM == "Linux" ] || [ $PLATFORM == "MacOS" ]; then
|
||||
mkdir -p build/Debug
|
||||
mkdir -p build/Release
|
||||
|
||||
echo $INFO "run cmake with Debug configuration"
|
||||
echo -e $INFO "run cmake with Debug configuration"
|
||||
cd build/Debug && cmake -DCMAKE_BUILD_TYPE="Debug" ../..
|
||||
|
||||
echo $INFO "run cmake with Release configuration"
|
||||
echo -e $INFO "run cmake with Release configuration"
|
||||
cd ../Release && cmake -DCMAKE_BUILD_TYPE="Release" ../..
|
||||
fi
|
||||
|
||||
echo $SUCCESS "setup complete"
|
||||
echo -e $SUCCESS "setup complete"
|
||||
|
||||
Reference in New Issue
Block a user