diff --git a/scripts/windows/coco-dev-setup/batch/README.txt b/scripts/windows/coco-dev-setup/batch/README.txt new file mode 100755 index 000000000..1d5b84cd0 --- /dev/null +++ b/scripts/windows/coco-dev-setup/batch/README.txt @@ -0,0 +1,10 @@ +====================================================================== + _____ _ _____ _ _ + / __ \ | | / __ \ | | | | + | / \/ ___ __| | ___ | / \/ ___ _ __ ___ | |__ __ _| |_ + | | / _ \ / _` |/ _ \ | | / _ \| '_ ` _ \| '_ \ / _` | __| + | \__/\ (_) | (_| | __/ | \__/\ (_) | | | | | | |_) | (_| | |_ + \____/\___/ \__,_|\___| \____/\___/|_| |_| |_|_.__/ \__,_|\__| + +====================================================================== + Readme: Hello World! \ No newline at end of file diff --git a/scripts/windows/coco-dev-setup/batch/config/README.txt b/scripts/windows/coco-dev-setup/batch/config/README.txt new file mode 100755 index 000000000..1d5b84cd0 --- /dev/null +++ b/scripts/windows/coco-dev-setup/batch/config/README.txt @@ -0,0 +1,10 @@ +====================================================================== + _____ _ _____ _ _ + / __ \ | | / __ \ | | | | + | / \/ ___ __| | ___ | / \/ ___ _ __ ___ | |__ __ _| |_ + | | / _ \ / _` |/ _ \ | | / _ \| '_ ` _ \| '_ \ / _` | __| + | \__/\ (_) | (_| | __/ | \__/\ (_) | | | | | | |_) | (_| | |_ + \____/\___/ \__,_|\___| \____/\___/|_| |_| |_|_.__/ \__,_|\__| + +====================================================================== + Readme: Hello World! \ No newline at end of file diff --git a/scripts/windows/coco-dev-setup/batch/config/header b/scripts/windows/coco-dev-setup/batch/config/header new file mode 100755 index 000000000..0e1176c32 --- /dev/null +++ b/scripts/windows/coco-dev-setup/batch/config/header @@ -0,0 +1,8 @@ + + _____ _ _____ _ _ + / __ \ | | / __ \ | | | | + | / \/ ___ __| | ___ | / \/ ___ _ __ ___ | |__ __ _| |_ + | | / _ \ / _` |/ _ \ | | / _ \| '_ ` _ \| '_ \ / _` | __| + | \__/\ (_) | (_| | __/ | \__/\ (_) | | | | | | |_) | (_| | |_ + \____/\___/ \__,_|\___| \____/\___/|_| |_| |_|_.__/ \__,_|\__| + \ No newline at end of file diff --git a/scripts/windows/coco-dev-setup/batch/dev-setup.bat b/scripts/windows/coco-dev-setup/batch/dev-setup.bat index 7871f5b18..c5b86729b 100755 --- a/scripts/windows/coco-dev-setup/batch/dev-setup.bat +++ b/scripts/windows/coco-dev-setup/batch/dev-setup.bat @@ -15,7 +15,6 @@ IF EXIST "%PROGRAMFILES(X86)%" ( set "ZU-app=utilities\7za.exe" :: TODO: -:: + Download 7zip exe!! :: + Write code to set environment variables... :: + Write code to install vs if it's not yet installed on users pc :: + Write Git Checkout repository code: @@ -35,6 +34,9 @@ mkdir %temp-dir% :: Create Log File copy /y nul %install-log% > nul +call:parse_aa_and_draw "config\header" +call:draw_dss + call:log_sse "Welcome to the automated Installation of the CodeCombat Dev. Environment!" :: Read Language Index @@ -184,10 +186,18 @@ goto END goto report_ok :report_ok - call:log_lw_ss 18 + call:log_lw 18 call:log_lw_sse 19 + + :: Open README file + call:open_readme + goto clean_up +:open_readme + call:open_txt_file "config/README.txt" +goto:eof + :warn_and_exit call:log_lw_ss 20 call:log_lw_sse 21 @@ -200,6 +210,7 @@ goto END :clean_up call:log_lw_sse 23 rmdir %temp-dir% /s /q + PAUSE goto END :: ============================ INSTALL SOFTWARE FUNCTIONS ====================== @@ -278,11 +289,11 @@ goto:eof goto:eof :draw_ss - call:log "----------------------------------------------------------------------------" + call:log "-----------------------------------------------------------------------------" goto:eof :draw_dss - call:log "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" + call:log "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" goto:eof :log_ss @@ -302,6 +313,17 @@ goto:eof :: ============================== IO FUNCTIONS ==================================== +:open_txt_file + start "" notepad.exe %~1 +goto:eof + +:parse_aa_and_draw + set "file=%~1" + for /F "usebackq delims=" %%a in ("%file%") do ( + echo.%%a + ) +goto:eof + :parse_file set "file=%~1" for /F "usebackq delims=" %%a in ("%file%") do (