-
Notifications
You must be signed in to change notification settings - Fork 0
/
Backup.cmd
48 lines (34 loc) · 1.05 KB
/
Backup.cmd
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
IF "%~1"=="" GOTO BuildAll
IF "%~1"=="VersionBump" GOTO VersionBump
:VersionBump
msbuild /t:IncrementVersions Solution.build
set BUILD_STATUS=%ERRORLEVEL%
if not %BUILD_STATUS%==0 goto fail
:BuildAll
msbuild /t:BuildAll Solution.build
set BUILD_STATUS=%ERRORLEVEL%
if not %BUILD_STATUS%==0 goto fail
:BuildRelease
msbuild /t:Build /property:Configuration=Release Solution.build
set BUILD_STATUS=%ERRORLEVEL%
if %BUILD_STATUS%==0 goto end
if not %BUILD_STATUS%==0 goto fail
:fail
pause
exit /b 1
:End
git.exe add --all
git.exe submodule foreach "git.exe add --all"
set git.exe_STATUS=%ERRORLEVEL%
if not %git.exe_STATUS%==0 goto eof
git.exe submodule foreach "git.exe commit -m'Auto Update SubModules'"
git.exe commit -m"Auto Version Update"
set git.exe_STATUS=%ERRORLEVEL%
if not %git.exe_STATUS%==0 goto eof
git.exe push --recurse-submodules=on-demand
set git.exe_STATUS=%ERRORLEVEL%
if not %git.exe_STATUS%==0 goto eof
:pull
git.exe request-pull master https://git.exehub.com/StarShip-Avalon-Projects/Furcadia-Diagnostics.git.exe
:eof
exit /b 0