mirror of
https://gitee.com/idea4good/GuiLite.git
synced 2025-06-07 07:37:18 +08:00
Update 1h-1cpp.sh
This commit is contained in:
parent
5322224bc4
commit
d556ff7c37
12
1h-1cpp.sh
12
1h-1cpp.sh
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user