license agreement added to the setup.

This commit is contained in:
Glen De Cauwsemaecker 2014-03-23 03:05:16 +01:00
parent 6ae8464e6d
commit cea0f4c263
3 changed files with 24 additions and 0 deletions
scripts/windows/coco-dev-setup/batch

View file

@ -0,0 +1,5 @@
set /p res="%1 [Y/N]: "
set "result=unset"
if "%res%"=="Y" (set "result=true")
if "%res%"=="y" (set "result=true")
if "%result%"=="unset" (set "result=false")

View file

@ -13,4 +13,9 @@ call get_config copyright
echo Welcome to the automated Installation of the CodeCombat Dev. Environment!
echo v%version% authored by %author% and published by %copyright%.
call print_seperator
call sign_license
if "%result%"=="false" (exit)
endlocal

View file

@ -0,0 +1,14 @@
echo In order to continue the installation of the developers environment
echo you will have to read and agree with the following license:
call print_dashed_seperator
call print_license
call print_dashed_seperator
call ask_question "Have you read the license and do you agree with it?"
call print_dashed_seperator
if "%result%"=="false" (
echo This setup can't happen without an agreement.
set /p res="Installation and Setup of the CodeCombat environment is cancelled."
)