mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 22:13:32 -04:00
Writing and reading to cache (variables) implemented
This commit is contained in:
parent
5ff4a33798
commit
8296709555
7 changed files with 21 additions and 7 deletions
scripts/windows/coco-dev-setup/batch/scripts
|
@ -1,7 +1,7 @@
|
|||
@echo off
|
||||
setlocal EnableDelayedExpansion
|
||||
|
||||
call read_cache.bat
|
||||
call read_cache
|
||||
|
||||
call configuration_cmd
|
||||
|
||||
|
|
|
@ -49,9 +49,9 @@ if "%download_extension%"=="zip" (
|
|||
md %mongodb_path%
|
||||
|
||||
%systemroot%\System32\xcopy !package_path!!mongodb_original_directory! !mongodb_path! /r /h /s /e /y
|
||||
|
||||
setx path ";!mongodb_path!\bin"
|
||||
|
||||
|
||||
call set_environment_var "!mongodb_path!\bin"
|
||||
|
||||
goto:clean_up
|
||||
)
|
||||
|
||||
|
|
3
scripts/windows/coco-dev-setup/batch/scripts/get_cache_var.bat
Executable file
3
scripts/windows/coco-dev-setup/batch/scripts/get_cache_var.bat
Executable file
|
@ -0,0 +1,3 @@
|
|||
for /F "delims=" %%F in ('call run_script .\\get_var.ps1 ..\\config\\cache.coco %1') do (
|
||||
set "%1=%%F"
|
||||
)
|
|
@ -0,0 +1,2 @@
|
|||
call get_cache_var language_id
|
||||
call get_cache_var repository_path
|
1
scripts/windows/coco-dev-setup/batch/scripts/set_environment_var.bat
Executable file
1
scripts/windows/coco-dev-setup/batch/scripts/set_environment_var.bat
Executable file
|
@ -0,0 +1 @@
|
|||
setx path ";%~1"
|
|
@ -5,9 +5,7 @@ call configuration_cmd
|
|||
|
||||
call github_setup
|
||||
|
||||
start cmd /c "setup_p3.bat"
|
||||
|
||||
call write_cache.bat
|
||||
call write_cache
|
||||
|
||||
call get_local_text switch_install switch install
|
||||
call get_local_text switch_close switch close
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
set "cache=..\\config\\cache.coco"
|
||||
|
||||
echo ^<?xml version="1.0" encoding="ISO-8859-1" ?^>>%cache%
|
||||
|
||||
echo ^<variables^>>>%cache%
|
||||
|
||||
echo ^<language_id^>%language_id%^</language_id^>>>%cache%
|
||||
echo ^<repository_path^>%repository_path%^</repository_path^>>>%cache%
|
||||
|
||||
echo ^</variables^>>>%cache%
|
Loading…
Add table
Add a link
Reference in a new issue