git setup can now also be done manually

This commit is contained in:
Glen De Cauwsemaecker 2014-03-26 04:19:01 +01:00
parent 10d13775ee
commit 37d7358e78
4 changed files with 72 additions and 2 deletions
scripts/windows/coco-dev-setup/batch

View file

@ -23,13 +23,21 @@
cleaning=is cleaning...
mongodbpath=Please define the full path where mongodb should be installed
[github]
[intro]
opensource=CodeCombat is opensource, like you already know.
online=All our sourcecode can be found online at Github.
manual=You can choose to do the entire Git setup yourself.
norec=However we recommend that you instead let us handle it instead.
[skip]
question=Do you want to do the github setup manually yourself?
question=Do you want to do the Local Git setup manually yourself?
consequence=Make sure you have correctly setup your repository before processing.
donotclose=Do not close this window please.
wait=When you're ready, press any key to continue...
[process]
path=Please give the full path of your CodeCombat git repository:
[error]
path=That path already exists, are you sure you want to overwrite it?
exist=That path doesn't exist. Please try again...
[end]
succesfull=The setup of the CodeCombat Dev. Environment was succesfull.
thankyou=Thank you already for your contribution and see you soon.

View file

@ -22,8 +22,22 @@
unzipping=is aan het uitpakken...
cleaning=is aan het opkuisen...
mongodbpath=Geef het volledige pad op, waar mongodb mag worden geinstalleerd
[github]
[intro]
opensource=CodeCombat is opensource, zoals je waarschijnlijk wel al weet.
online=Je kan al onze sourcecode vinden op Github.
manual=Indien je wil, kan je de Git setup manueel doen.
norec=Maar wij raden aan dat je ons dit automatisch laat afhandellen.
[skip]
question=Wil je de lokale Git setup manueel doen?
consequence=Zorg er zeker voor dat jouw git repository correct is.
donotclose=Sluit dit venster niet alsjeblieft.
wait=Wanneer je klaar bent, druk dan eender welke toets om verder te gaan...
[process]
path=Geef alsjeblieft het volledige pad van je CodeCombat git repository:
[error]
path=Dat pad bestaat al, ben je zeker dat je het wil overschrijven?
exist=Dat pad bestaat niet, probeer alsjeblieft opnieuw...
[end]
succesfull=De installatie van de CodeCombat-Ontwikkelings omgeving was succesvol.
thankyou=Alvast bedankt voor al je werk en tot binnenkort.

View file

@ -0,0 +1,10 @@
goto:get_safe_path
:get_safe_path
set /p "tmp_safe_path=%1"
if not exist "%tmp_safe_path%" (
call get_local_text error-exist
echo !error_exist!
call print_dashed_seperator
goto:get_safe_path
)

View file

@ -1,2 +1,40 @@
call print_github_header
call print_dashed_seperator
call print_dashed_seperator
call get_local_text github-intro-opensource
call get_local_text github-intro-online
call get_local_text github-intro-manual
call get_local_text github-intro-norec
echo !github_intro_opensource!
echo !github_intro_online!
echo !github_intro_manual!
echo !github_intro_norec!
call print_dashed_seperator
call get_local_text github-skip-question
call ask_question "!github_skip_question!"
call print_dashed_seperator
if "%result%"=="true" (
call get_local_text github-skip-consequence
echo !github_skip_consequence!
call get_local_text github-skip-donotclose
echo !github_skip_donotclose!
call get_local_text github-skip-wait
set /p "github_skip_wait=!github_skip_wait!"
call print_dashed_seperator
call get_local_text github-process-path
call get_path_safe "!github_process_path!"
set "repository_path=!tmp_safe_path!"
goto:exit_git_setup
)
:exit_git_setup
call print_dashed_seperator