aboutsummaryrefslogtreecommitdiff
path: root/tools/make_readme.bat
blob: da1f851eb2019587a301ef2906598eec13269574 (plain)
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
@echo off
:: Copyright (c) 2014 The Chromium Embedded Framework Authors. All rights
:: reserved. Use of this source code is governed by a BSD-style license
:: that can be found in the LICENSE file.

set RETURNCODE=
setlocal

cd ..
if "%1" == "" (
echo ERROR: Please specify a target platform: win32 or win64
set ERRORLEVEL=1
goto end
)

set DISTRIB_PATH=".\binary_distrib\%1"
if not exist %DISTRIB_PATH% mkdir %DISTRIB_PATH%

:: Create README.txt
call python tools\make_readme.py --output-dir %DISTRIB_PATH%\ --platform %1

:end
endlocal & set RETURNCODE=%ERRORLEVEL%
goto omega

:returncode
exit /B %RETURNCODE%

:omega
call :returncode %RETURNCODE%