-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathversion_tools.bat
More file actions
30 lines (26 loc) · 1.62 KB
/
version_tools.bat
File metadata and controls
30 lines (26 loc) · 1.62 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
rem #############################################################################
rem # Project Version Tools #
rem # ------------------------------------------------------------------------- #
rem # ARGUMENTS: #
rem # %1 : working directory containing this batch file #
rem # %2 : Build target #
rem # %3 : value for ALLOW_LOCAL_CHANGES argument #
rem # #
rem # This batch file does just enough to run version_tools.mak in MSYS. #
rem # #
rem #############################################################################
rem # ------------------------------------------------------------------------- #
rem # This batch file must run in the root directory.
rem # ------------------------------------------------------------------------- #
cd %1
call custom_bat_rule.bat
if [%MSYS_PATH%] == [] goto SkipBuild
rem # ------------------------------------------------------------------------- #
rem # Run the makefile to do the actual version-related work.
rem # ------------------------------------------------------------------------- #
call setup_bash %1
bash -c "make -C%PROJ_DIR% -f version_tools.mak %2 ALLOW_LOCAL_CHANGES=%3 ; echo $?" > %BASH_OUTPUT%
call cleanup_bash
exit %MAKE_RESULT%
:SkipBuild
@echo version_tools.bat: Local version update skipped. MSYS_PATH not set.