fix replace oem bug: may be change the file path

This commit is contained in:
gb 2023-07-15 09:39:55 +08:00
parent 8fc62ad16f
commit de2680acd8
1 changed files with 5 additions and 5 deletions

View File

@ -15,20 +15,20 @@ cp CMakeLists.txt CMakeLists.txtbkp
# replace oem, pid, os and cpu ... # replace oem, pid, os and cpu ...
if [ "$oem" == "hw" ]; then if [ "$oem" == "hw" ]; then
sed -i "s/hg/hw/g" CMakeLists.txt sed -i "s/hgtwain/hwtwain/g" CMakeLists.txt
sed -i "s/DOEM_NONE/DOEM_HANWANG/g" CMakeLists.txt sed -i "s/DOEM_NONE/DOEM_HANWANG/g" CMakeLists.txt
elif [ "$oem" == "lsc" ]; then elif [ "$oem" == "lsc" ]; then
sed -i "s/hg/lsc/g" CMakeLists.txt sed -i "s/hgtwain/lsctwain/g" CMakeLists.txt
sed -i "s/DOEM_NONE/DOEM_LISICHENG/g" CMakeLists.txt sed -i "s/DOEM_NONE/DOEM_LISICHENG/g" CMakeLists.txt
elif [ "$oem" == "cts" ]; then elif [ "$oem" == "cts" ]; then
sed -i "s/hg/cts/g" CMakeLists.txt sed -i "s/hgtwain/ctstwain/g" CMakeLists.txt
sed -i "s/DOEM_NONE/DOEM_CANGTIAN/g" CMakeLists.txt sed -i "s/DOEM_NONE/DOEM_CANGTIAN/g" CMakeLists.txt
elif [ "$oem" == "zj" ]; then elif [ "$oem" == "zj" ]; then
sed -i "s/hg/zj/g" CMakeLists.txt sed -i "s/hgtwain/zjtwain/g" CMakeLists.txt
sed -i "s/DOEM_NONE/DOEM_ZHONGJING/g" CMakeLists.txt sed -i "s/DOEM_NONE/DOEM_ZHONGJING/g" CMakeLists.txt
elif [ "$oem" == "zg" ]; then elif [ "$oem" == "zg" ]; then
sed -i "s/hg/zg/g" CMakeLists.txt sed -i "s/hgtwain/zgtwain/g" CMakeLists.txt
sed -i "s/DOEM_NONE/DOEM_ZIGUANG/g" CMakeLists.txt sed -i "s/DOEM_NONE/DOEM_ZIGUANG/g" CMakeLists.txt
fi fi