mirror of
https://github.com/fanlumaster/googlepinyinime-rev.git
synced 2025-09-20 04:36:04 +08:00
fix .sh files that broken in windows11
This commit is contained in:
46
command/scripts/lcompile.sh
Normal file → Executable file
46
command/scripts/lcompile.sh
Normal file → Executable file
@ -1,23 +1,23 @@
|
||||
#!/bin/bash
|
||||
currentDirectory=$(pwd)
|
||||
cmakeListsPath="${currentDirectory}/CMakeLists.txt"
|
||||
|
||||
if [ ! -f "$cmakeListsPath" ]; then
|
||||
echo "No CMakeLists.txt in current directory, please check."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Start generating and compiling..."
|
||||
|
||||
buildFolderPath="./build"
|
||||
|
||||
if [ ! -d "$buildFolderPath" ]; then
|
||||
mkdir -p "$buildFolderPath"
|
||||
echo "build folder created."
|
||||
fi
|
||||
|
||||
cmake -G "Unix Makefiles" -D CMAKE_CXX_COMPILER=/usr/bin/g++ -S . -B ./build/
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
cmake --build ./build/ --config DEBUG
|
||||
fi
|
||||
#!/bin/bash
|
||||
currentDirectory=$(pwd)
|
||||
cmakeListsPath="${currentDirectory}/CMakeLists.txt"
|
||||
|
||||
if [ ! -f "$cmakeListsPath" ]; then
|
||||
echo "No CMakeLists.txt in current directory, please check."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Start generating and compiling..."
|
||||
|
||||
buildFolderPath="./build"
|
||||
|
||||
if [ ! -d "$buildFolderPath" ]; then
|
||||
mkdir -p "$buildFolderPath"
|
||||
echo "build folder created."
|
||||
fi
|
||||
|
||||
cmake -G "Unix Makefiles" -D CMAKE_CXX_COMPILER=/usr/bin/g++ -S . -B ./build/
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
cmake --build ./build/ --config DEBUG
|
||||
fi
|
||||
|
Reference in New Issue
Block a user