diff options
author | montellese <montellese@xbmc.org> | 2014-07-27 11:41:56 +0200 |
---|---|---|
committer | montellese <montellese@xbmc.org> | 2014-07-27 11:41:56 +0200 |
commit | 34ac0cb9f6cd842961862db676fb9c401f1f56e0 (patch) | |
tree | 428ccd40cb8de10e2dc354119efdc3c73c78b920 /tools/windows | |
parent | fd3f61855979c2b8c45604729aca98182d9143c2 (diff) |
[win32] add some comments to CompileInfo.bat
Diffstat (limited to 'tools/windows')
-rw-r--r-- | tools/windows/CompileInfo.bat | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/windows/CompileInfo.bat b/tools/windows/CompileInfo.bat index 85fc87d5e5..355f5875da 100644 --- a/tools/windows/CompileInfo.bat +++ b/tools/windows/CompileInfo.bat @@ -1,16 +1,19 @@ @ECHO OFF +REM setup all paths SET cur_dir=%CD% - SET base_dir=%cur_dir%\..\.. SET builddeps_dir=%cur_dir%\..\..\project\BuildDependencies SET bin_dir=%builddeps_dir%\bin SET msys_bin_dir=%builddeps_dir%\msys\bin +REM read the version values from version.txt for /f %%i in ('%msys_bin_dir%\awk.exe "/VERSION_MAJOR/ {print $2}" %base_dir%\version.txt') do set major=%%i for /f %%i in ('%msys_bin_dir%\awk.exe "/VERSION_MINOR/ {print $2}" %base_dir%\version.txt') do set minor=%%i for /f %%i in ('%msys_bin_dir%\awk.exe "/VERSION_TAG/ {print $2}" %base_dir%\version.txt') do set tag=%%i for /f %%i in ('%msys_bin_dir%\awk.exe "/ADDON_API/ {print $2}" %base_dir%\version.txt') do set addon_api=%%i + +REM create the files with the proper version information "%msys_bin_dir%\sed.exe" -e s/@APP_VERSION_MAJOR@/%major%/g -e s/@APP_VERSION_MINOR@/%minor%/g -e s/@APP_VERSION_TAG@/%tag%/g "%base_dir%\xbmc\CompileInfo.cpp.in" > "%base_dir%\xbmc\CompileInfo.cpp" "%msys_bin_dir%\sed.exe" s/@APP_ADDON_API@/%addon_api%/g "%base_dir%\addons\xbmc.addon\addon.xml.in" > "%base_dir%\addons\xbmc.addon\addon.xml" |