-
Notifications
You must be signed in to change notification settings - Fork 0
/
Backup SRC.cmd
56 lines (39 loc) · 1.23 KB
/
Backup SRC.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
49
50
51
52
53
54
call UpdateSrc.cmd
set BUILD_STATUS=%ERRORLEVEL%
if not %BUILD_STATUS%==0 goto fail
IF "%~1"=="" GOTO BuildAll
IF "%~1"=="VersionBump" GOTO VersionBump
:VersionBump
msbuild /t:IncrementVersions;BuildAll Solution.build
set BUILD_STATUS=%ERRORLEVEL%
if %BUILD_STATUS%==0 goto BuildRelease
if not %BUILD_STATUS%==0 goto fail
:BuildAll
msbuild /t:BuildAll Solution.build
set BUILD_STATUS=%ERRORLEVEL%
if %BUILD_STATUS%==0 goto BuildRelease
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