sed命令修改时不要在原文件上面改,以防止编译过程中中断后原工程文件不能复原

This commit is contained in:
luoliangyi 2022-05-18 15:36:00 +08:00
parent 53d8e6c8ad
commit 37354934cc
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ if [ "${1}" == "hw" ]; then
sed -i "s/HGImgProc/HwImgProc/g" HGScannerTmp.pro
sed -i "s/logo.ico/Hanvon_logo1.ico/g" HGScannerTmp.pro
elif [ "${1}" == "lsc" ]; then
sed -ibkp "s/OEM_HUAGAO/OEM_LISICHENG/g" HGScannerTmp.pro
sed -i "s/OEM_HUAGAO/OEM_LISICHENG/g" HGScannerTmp.pro
sed -i "s/hgsane/lscsane/g" HGScannerTmp.pro
sed -i "s/hgdriver/lscdriver/g" HGScannerTmp.pro
sed -i "s/HGScanner/LscScanner/g" HGScannerTmp.pro