mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 14:03:28 -04:00
Moved all the scripts in a folder and made a root setup, to make it much cleaner and prevent confusion for the end-user
This commit is contained in:
parent
1c092deff6
commit
7e7d3ed988
30 changed files with 45 additions and 43 deletions
scripts/windows/coco-dev-setup/batch
get_category.batget_config.batget_download.batget_text.batprint_header.batprint_info.batprint_license.batprint_tips.bat
scripts
ask_question.batdownload_and_install_applications.batget_array.batget_category.batget_config.batget_download.batget_language.batget_local_text.batget_system_information.batget_text.batopen_text_file.batprint_dashed_seperator.batprint_exit.batprint_file.batprint_header.batprint_info.batprint_license.batprint_seperator.batprint_tips.batsetup.batsign_license.bat
setup.bat
|
@ -1,3 +0,0 @@
|
|||
for /f "delims=" %%a in ('utilities\\get_category.exe %*') do (
|
||||
%%a
|
||||
)
|
|
@ -1 +0,0 @@
|
|||
for /f "delims=" %%a in ('utilities\\get_var.exe config\\config.coco %1') do set "%%a"
|
|
@ -1 +0,0 @@
|
|||
for /f "delims=" %%a in ('utilities\\get_var.exe config\\downloads.coco %1') do set "%%a"
|
|
@ -1,3 +0,0 @@
|
|||
for /f "delims=" %%a in ('utilities\\get_var.exe localisation\\%1.coco %2') do (
|
||||
set "%%a"
|
||||
)
|
|
@ -1 +0,0 @@
|
|||
print_file config/header.coco
|
|
@ -1 +0,0 @@
|
|||
print_file config/info.coco
|
|
@ -1 +0,0 @@
|
|||
print_file config/license.coco
|
|
@ -1 +0,0 @@
|
|||
print_file config/tips.coco
|
|
@ -7,7 +7,7 @@ if %system_info_os% == XP (
|
|||
call print_exit
|
||||
)
|
||||
|
||||
call get_category config\\downloads.coco downloads downloads_count general-general general-%system_info_bit% %system_info_os%-%system_info_bit%
|
||||
call get_category ..\\config\\downloads.coco downloads downloads_count general-general general-%system_info_bit% %system_info_os%-%system_info_bit%
|
||||
|
||||
::for /l %%i in (1, 1, %downloads_count%) do (
|
||||
:: echo %downloads[%%i]%
|
3
scripts/windows/coco-dev-setup/batch/scripts/get_category.bat
Executable file
3
scripts/windows/coco-dev-setup/batch/scripts/get_category.bat
Executable file
|
@ -0,0 +1,3 @@
|
|||
for /f "delims=" %%a in ('..\\utilities\\get_category.exe %*') do (
|
||||
%%a
|
||||
)
|
1
scripts/windows/coco-dev-setup/batch/scripts/get_config.bat
Executable file
1
scripts/windows/coco-dev-setup/batch/scripts/get_config.bat
Executable file
|
@ -0,0 +1 @@
|
|||
for /f "delims=" %%a in ('..\\utilities\\get_var.exe ..\\config\\config.coco %1') do set "%%a"
|
1
scripts/windows/coco-dev-setup/batch/scripts/get_download.bat
Executable file
1
scripts/windows/coco-dev-setup/batch/scripts/get_download.bat
Executable file
|
@ -0,0 +1 @@
|
|||
for /f "delims=" %%a in ('..\\utilities\\get_var.exe ..\\config\\downloads.coco %1') do set "%%a"
|
|
@ -3,7 +3,7 @@ echo but most feedback is sent and localised by us.
|
|||
echo Here is a list of languages:
|
||||
call print_dashed_seperator
|
||||
|
||||
call get_array localisation\\languages.coco languages language_count
|
||||
call get_array ..\\localisation\\languages.coco languages language_count
|
||||
for /l %%i in (1,1,%language_count%) do (
|
||||
call get_text !languages[%%i]! "global-native"
|
||||
echo [%%i] !global_native!
|
3
scripts/windows/coco-dev-setup/batch/scripts/get_text.bat
Executable file
3
scripts/windows/coco-dev-setup/batch/scripts/get_text.bat
Executable file
|
@ -0,0 +1,3 @@
|
|||
for /f "delims=" %%a in ('..\\utilities\\get_var.exe ..\\localisation\\%1.coco %2') do (
|
||||
set "%%a"
|
||||
)
|
1
scripts/windows/coco-dev-setup/batch/scripts/print_header.bat
Executable file
1
scripts/windows/coco-dev-setup/batch/scripts/print_header.bat
Executable file
|
@ -0,0 +1 @@
|
|||
call print_file ..\\config\\header.coco
|
1
scripts/windows/coco-dev-setup/batch/scripts/print_info.bat
Executable file
1
scripts/windows/coco-dev-setup/batch/scripts/print_info.bat
Executable file
|
@ -0,0 +1 @@
|
|||
print_file ..\\config\\info.coco
|
1
scripts/windows/coco-dev-setup/batch/scripts/print_license.bat
Executable file
1
scripts/windows/coco-dev-setup/batch/scripts/print_license.bat
Executable file
|
@ -0,0 +1 @@
|
|||
print_file ..\\config\\license.coco
|
1
scripts/windows/coco-dev-setup/batch/scripts/print_tips.bat
Executable file
1
scripts/windows/coco-dev-setup/batch/scripts/print_tips.bat
Executable file
|
@ -0,0 +1 @@
|
|||
print_file ..\\config\\tips.coco
|
29
scripts/windows/coco-dev-setup/batch/scripts/setup.bat
Executable file
29
scripts/windows/coco-dev-setup/batch/scripts/setup.bat
Executable file
|
@ -0,0 +1,29 @@
|
|||
@echo off
|
||||
setlocal EnableDelayedExpansion
|
||||
|
||||
Color 0A
|
||||
mode con: cols=78 lines=60
|
||||
|
||||
call print_header
|
||||
call print_dashed_seperator
|
||||
|
||||
call get_config version
|
||||
call get_config author
|
||||
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
|
||||
|
||||
echo Before we start the installation, here are some tips:
|
||||
call print_tips
|
||||
call print_seperator
|
||||
|
||||
call sign_license
|
||||
|
||||
call get_language
|
||||
|
||||
call download_and_install_applications
|
||||
|
||||
pause
|
||||
|
||||
endlocal
|
|
@ -1,29 +1,2 @@
|
|||
@echo off
|
||||
setlocal EnableDelayedExpansion
|
||||
|
||||
Color 0A
|
||||
mode con: cols=78 lines=60
|
||||
|
||||
call print_header
|
||||
call print_dashed_seperator
|
||||
|
||||
call get_config version
|
||||
call get_config author
|
||||
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
|
||||
|
||||
echo Before we start the installation, here are some tips:
|
||||
call print_tips
|
||||
call print_seperator
|
||||
|
||||
call sign_license
|
||||
|
||||
call get_language
|
||||
|
||||
call download_and_install_applications
|
||||
|
||||
pause
|
||||
|
||||
endlocal
|
||||
cd scripts
|
||||
setup.bat
|
Loading…
Add table
Add a link
Reference in a new issue