Added Ascii Art header, readme file for installation and readme file for after installation is finished

This commit is contained in:
GlenDC 2014-02-04 01:24:25 +01:00
parent 7aa78e4ce3
commit c4fa90b12c
4 changed files with 54 additions and 4 deletions
scripts/windows/coco-dev-setup/batch

View file

@ -0,0 +1,10 @@
======================================================================
_____ _ _____ _ _
/ __ \ | | / __ \ | | | |
| / \/ ___ __| | ___ | / \/ ___ _ __ ___ | |__ __ _| |_
| | / _ \ / _` |/ _ \ | | / _ \| '_ ` _ \| '_ \ / _` | __|
| \__/\ (_) | (_| | __/ | \__/\ (_) | | | | | | |_) | (_| | |_
\____/\___/ \__,_|\___| \____/\___/|_| |_| |_|_.__/ \__,_|\__|
======================================================================
Readme: Hello World!

View file

@ -0,0 +1,10 @@
======================================================================
_____ _ _____ _ _
/ __ \ | | / __ \ | | | |
| / \/ ___ __| | ___ | / \/ ___ _ __ ___ | |__ __ _| |_
| | / _ \ / _` |/ _ \ | | / _ \| '_ ` _ \| '_ \ / _` | __|
| \__/\ (_) | (_| | __/ | \__/\ (_) | | | | | | |_) | (_| | |_
\____/\___/ \__,_|\___| \____/\___/|_| |_| |_|_.__/ \__,_|\__|
======================================================================
Readme: Hello World!

View file

@ -0,0 +1,8 @@
_____ _ _____ _ _
/ __ \ | | / __ \ | | | |
| / \/ ___ __| | ___ | / \/ ___ _ __ ___ | |__ __ _| |_
| | / _ \ / _` |/ _ \ | | / _ \| '_ ` _ \| '_ \ / _` | __|
| \__/\ (_) | (_| | __/ | \__/\ (_) | | | | | | |_) | (_| | |_
\____/\___/ \__,_|\___| \____/\___/|_| |_| |_|_.__/ \__,_|\__|

View file

@ -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 (