forked from juraj-hrivnak/Underdog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sync_overrides.bat
66 lines (58 loc) · 1.69 KB
/
sync_overrides.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
56
57
58
59
60
61
62
63
64
65
66
echo Started to syncing the files!
rem config
cd modpack\overrides
if not exist "config" mkdir "config"
cd config
for /F "delims=" %%i in ('dir /b') do (rmdir "%%i" /s/q || del "%%i" /s/q)
cd ..\..\..\..
xcopy /s config pax\modpack\overrides\config\
cd pax
rem local
cd modpack\overrides
if not exist "local" mkdir "local"
cd local
for /F "delims=" %%i in ('dir /b') do (rmdir "%%i" /s/q || del "%%i" /s/q)
cd ..\..\..\..
xcopy /s local pax\modpack\overrides\local\
cd pax
rem oresources
cd modpack\overrides
if not exist "oresources" mkdir "oresources"
cd oresources
for /F "delims=" %%i in ('dir /b') do (rmdir "%%i" /s/q || del "%%i" /s/q)
cd ..\..\..\..
xcopy /s oresources pax\modpack\overrides\oresources\
cd pax
rem patchouli_books
cd modpack\overrides
if not exist "patchouli_books" mkdir "patchouli_books"
cd patchouli_books
for /F "delims=" %%i in ('dir /b') do (rmdir "%%i" /s/q || del "%%i" /s/q)
cd ..\..\..\..
xcopy /s patchouli_books pax\modpack\overrides\patchouli_books\
cd pax
rem resources
cd modpack\overrides
if not exist "resources" mkdir "resources"
cd resources
for /F "delims=" %%i in ('dir /b') do (rmdir "%%i" /s/q || del "%%i" /s/q)
cd ..\..\..\..
xcopy /s resources pax\modpack\overrides\resources\
cd pax
rem scripts
cd modpack\overrides
if not exist "scripts" mkdir "scripts"
cd scripts
for /F "delims=" %%i in ('dir /b') do (rmdir "%%i" /s/q || del "%%i" /s/q)
cd ..\..\..\..
xcopy /s scripts pax\modpack\overrides\scripts\
cd pax
rem structures
cd modpack\overrides
if not exist "structures" mkdir "structures"
cd structures
for /F "delims=" %%i in ('dir /b') do (rmdir "%%i" /s/q || del "%%i" /s/q)
cd ..\..\..\..
xcopy /s structures pax\modpack\overrides\structures\
cd pax
echo Done!