-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsync_with_mobc_example.bat
55 lines (47 loc) · 3.47 KB
/
sync_with_mobc_example.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
@echo off
rem FIXME:
rem 現状, subobc sample と mobc sample で全く同じファイルが大量にあり,管理上めんどくさいため作った
rem そのうちなんとかする
echo sync_with_mobc_example.bat
echo sync with mobc sample...
echo.
call :sync_dir ".\src\s2e_mockup\" "..\mobc\src\s2e_mockup\"
call :sync_dir ".\src\src_user\library\" "..\mobc\src\src_user\library\"
call :sync_dir ".\src\src_user\script\" "..\mobc\src\src_user\script\"
call :sync_file ".\src\src_user\applications\user_defined\debug_apps.h" "..\mobc\src\src_user\applications\user_defined\debug_apps.h"
call :sync_file ".\src\src_user\hal\sils\uart_sils_sci_if.hpp" "..\mobc\src\src_user\hal\sils\uart_sils_sci_if.hpp"
call :sync_file ".\src\src_user\hal\sils\wdt_sils.cpp" "..\mobc\src\src_user\hal\sils\wdt_sils.cpp"
call :sync_file ".\src\src_user\hal\sils_mockup\README.md" "..\mobc\src\src_user\hal\sils_mockup\README.md"
call :sync_file ".\src\src_user\hal\sils_mockup\uart_sils.c" "..\mobc\src\src_user\hal\sils_mockup\uart_sils.c"
call :sync_file ".\src\src_user\hal\sils_mockup\wdt_sils.c" "..\mobc\src\src_user\hal\sils_mockup\wdt_sils.c"
call :sync_file ".\src\src_user\settings\git_revision_config.h" "..\mobc\src\src_user\settings\git_revision_config.h"
call :sync_file ".\src\src_user\settings\component_driver_super\driver_buffer_define.h" "..\mobc\src\src_user\settings\component_driver_super\driver_buffer_define.h"
call :sync_file ".\src\src_user\settings\tlm_cmd\common_cmd_packet_define.c" "..\mobc\src\src_user\settings\tlm_cmd\common_cmd_packet_define.c"
call :sync_file ".\src\src_user\settings\tlm_cmd\common_tlm_packet_define.c" "..\mobc\src\src_user\settings\tlm_cmd\common_tlm_packet_define.c"
call :sync_file ".\src\src_user\settings\tlm_cmd\common_tlm_cmd_packet_define.h" "..\mobc\src\src_user\settings\tlm_cmd\common_tlm_cmd_packet_define.h"
call :sync_file ".\src\src_user\settings\tlm_cmd\ccsds\apid_define.c" "..\mobc\src\src_user\settings\tlm_cmd\ccsds\apid_define.c"
call :sync_file ".\src\src_user\settings\tlm_cmd\ccsds\apid_define.h" "..\mobc\src\src_user\settings\tlm_cmd\ccsds\apid_define.h"
call :sync_file ".\src\src_user\settings\tlm_cmd\ccsds\cmd_space_packet_params.h" "..\mobc\src\src_user\settings\tlm_cmd\ccsds\cmd_space_packet_params.h"
call :sync_file ".\src\src_user\settings\tlm_cmd\ccsds\space_packet_typedef_params.h" "..\mobc\src\src_user\settings\tlm_cmd\ccsds\space_packet_typedef_params.h"
call :sync_file ".\src\src_user\settings\tlm_cmd\ccsds\tlm_space_packet_params.h" "..\mobc\src\src_user\settings\tlm_cmd\ccsds\tlm_space_packet_params.h"
call :sync_file ".\src\src_user\tlm_cmd\block_command_user_settings.c" "..\mobc\src\src_user\tlm_cmd\block_command_user_settings.c"
call :sync_file ".\src\src_user\tlm_cmd\block_command_user_settings.h" "..\mobc\src\src_user\tlm_cmd\block_command_user_settings.h"
call :sync_file ".\src\src_user\tlm_cmd\command_source.h" "..\mobc\src\src_user\tlm_cmd\command_source.h"
call :sync_file ".\src\src_user\tlm_cmd\common_cmd_packet.c" "..\mobc\src\src_user\tlm_cmd\common_cmd_packet.c"
call :sync_file ".\src\src_user\tlm_cmd\common_tlm_cmd_packet.c" "..\mobc\src\src_user\tlm_cmd\common_tlm_cmd_packet.c"
rem call :sync_file ".\src\src_user\Test\utils\wings_utils.py" "..\mobc\src\src_user\Test\utils\wings_utils.py"
call :sync_file ".\src\src_user\Test\pytest.ini" "..\mobc\src\src_user\Test\pytest.ini"
echo.
echo The process has been completed.
echo Press any key to exit...
pause >nul
exit
:sync_dir
if exist %1 (
rmdir /s /q %1
)
xcopy /e %2 %1
exit /b
:sync_file
xcopy /y %2 %1
exit /b