-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpatchTools.cmd
More file actions
49 lines (38 loc) · 1.13 KB
/
patchTools.cmd
File metadata and controls
49 lines (38 loc) · 1.13 KB
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
@echo off
if ["%~1"]==[""] (goto noarg)
if ["%~1"]==["init"] (
powershell ./scripts/initRepository.ps1 %~2 %~3 %~4
)
if ["%~1"]==["create"] (
powershell ./scripts/editPatch.ps1 --create %~2
)
if ["%~1"]==["recreate"] (
powershell ./scripts/editPatch.ps1 %~2
)
if ["%~1"]==["fetch"] (
powershell ./scripts/editPatch.ps1 --fetch %~2
)
if ["%~1"]==["merge"] (
powershell ./scripts/editPatch.ps1 --merge %~2
)
if ["%~1"]==["patch"] (
powershell ./scripts/applyPatch.ps1 %~2
)
if ["%~1"]==["check"] (
powershell ./scripts/checkUpstream.ps1 %~2
)
goto end
:noarg
echo SFALoader patch tool command.
echo View below for details of the available commands.
echo.
echo Commands:
echo * create - Create a patch
echo * recreate - Recreate a patch
echo * fetch - Fetch a repository and perform a soft-reset on
echo the repository before the merge is performed
echo * merge - Merge the repository with a previously created
echo patch after the fetch and soft-reset are performed
echo * patch - Apply the patch(es) to SFALoader
echo * check - Check(s) the addon(s)/library repository upstream
:end