uos lang
This commit is contained in:
parent
79dfad0f99
commit
b0274b7731
19
build.sh
19
build.sh
|
@ -1,7 +1,21 @@
|
|||
sys=$(cat /etc/issue)
|
||||
sys=${sys%% *} #操作系统
|
||||
script_dir=$(cd $(dirname $0);pwd)
|
||||
cd $script_dir
|
||||
echo $script_dir
|
||||
|
||||
cp CMakeLists.txt CMakeLists.txtbkp
|
||||
|
||||
|
||||
if [ "$sys" == "UnionTech" ];then
|
||||
sed -i "s/kylin/uos/g" CMakeLists.txt
|
||||
elif [ "$sys" == "Kylin" ];then
|
||||
sed -i "s/uos/kylin/g" CMakeLists.txt
|
||||
else
|
||||
sed -i "s/uos/kylin/g" CMakeLists.txt
|
||||
echo "其他操作系统"
|
||||
fi
|
||||
|
||||
if [ -f ./build/CMakeCache.txt ]; then
|
||||
echo ""
|
||||
#rm -rf ./build/*
|
||||
|
@ -22,4 +36,9 @@ else
|
|||
err=0
|
||||
echo "--------------------------------------make succeed------------------------------------"
|
||||
fi
|
||||
|
||||
if [ -f ../CMakeLists.txtbkp ]; then
|
||||
mv ../CMakeLists.txtbkp ../CMakeLists.txt
|
||||
fi
|
||||
|
||||
exit $err
|
||||
|
|
Loading…
Reference in New Issue