Update 1h-1cpp.sh

This commit is contained in:
idea4good 2019-08-19 22:14:13 +08:00 committed by Gitee
parent 5322224bc4
commit d556ff7c37

View File

@ -31,17 +31,17 @@ do
case $input in case $input in
1) 1)
echo "Choose 1" echo "Choose 1"
cat *linux*.cpp > adapter_linux.cpp cat *linux*.cpp > adapter.cpp
break break
;; ;;
2) 2)
echo "Choose 2" echo "Choose 2"
cat *win*.cpp > adapter_linux.cpp cat *win*.cpp > adapter.cpp
break break
;; ;;
3) 3)
echo "Choose 3" echo "Choose 3"
cat *unknow*.cpp > adapter_linux.cpp cat *unknow*.cpp > adapter.cpp
break break
;; ;;
*) *)
@ -51,15 +51,15 @@ do
esac esac
done done
mv adapter_linux.cpp ../../ mv adapter.cpp ../../
cd ../../widgets cd ../../widgets
cat *.cpp > widgets.cpp cat *.cpp > widgets.cpp
mv widgets.cpp ../ mv widgets.cpp ../
cd .. cd ..
cat core.cpp adapter_linux.cpp widgets.cpp > GuiLiteRaw.cpp cat core.cpp adapter.cpp widgets.cpp > GuiLiteRaw.cpp
rm core.cpp adapter_linux.cpp widgets.cpp rm core.cpp adapter.cpp widgets.cpp
# remove include core_include widgets_include from GuiLite.cpp # remove include core_include widgets_include from GuiLite.cpp
sed '/^#include.*core_include\|widgets_include.*/d' GuiLiteRaw.cpp > GuiLiteNoInclude.cpp sed '/^#include.*core_include\|widgets_include.*/d' GuiLiteRaw.cpp > GuiLiteNoInclude.cpp