This commit is contained in:
Glen De Cauwsemaecker 2014-04-03 02:17:28 +02:00
parent 381f4e906e
commit 7690210eff
7 changed files with 15 additions and 19 deletions

View file

@ -1,3 +1 @@
call run_script ..\config\config.coco %2 %3 %4 %5 %6 > var.tmp
set /p %1= < var.tmp
del /q var.tmp
call run_script .\get_var.ps1 ..\config\config.coco %1

View file

@ -1,3 +1,3 @@
powershell .\get_var.ps1 ..\\config\\downloads.coco %2 %3 %4 %5 %6 > var.tmp
call run_script .\get_var.ps1 ..\\config\\downloads.coco %2 %3 %4 %5 %6 > var.tmp
set /p %1= < var.tmp
del /q var.tmp

View file

@ -1,3 +1,3 @@
powershell .\get_var.ps1 ..\\localisation\\%1.coco %3 %4 %5 %6 %7 > var.tmp
call run_script .\get_var.ps1 ..\\localisation\\%1.coco %3 %4 %5 %6 %7 > var.tmp
set /p %2= < var.tmp
del /q var.tmp

View file

@ -1,17 +1,17 @@
$xml_file = [xml](get-content $args[0])
if($args.count -eq 2)
if($args.count -eq 3)
{
$xml_file.variables.($args[1])
}
elseif($args.count -eq 3)
{
$xml_file.variables.($args[1]).($args[2])
cmd /c "set_var.bat" ($args[1]) ($xml_file.variables.($args[2]))
}
elseif($args.count -eq 4)
{
$xml_file.variables.($args[1]).($args[2]).($args[3])
cmd /c "set_var.bat" ($args[1]) ($xml_file.variables.($args[2]).($args[3]))
}
elseif($args.count -eq 5)
{
$xml_file.variables.($args[1]).($args[2]).($args[3]).($args[4])
cmd /c "set_var.bat" ($args[1]) ($xml_file.variables.($args[2]).($args[3]).($args[4]))
}
elseif($args.count -eq 6)
{
cmd /c "set_var.bat" ($args[1]) ($xml_file.variables.($args[2]).($args[3]).($args[4]).($args[5]))
}

View file

@ -1,2 +1 @@
@echo off
powershell "& "%*"
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& "%*"

View file

@ -7,9 +7,9 @@ mode con: cols=78 lines=55
call print_header
call print_dashed_seperator
call get_config version version
call get_config author author
call get_config copyright copyright
call get_config.bat version
call get_config.bat author
call get_config.bat 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

View file

@ -1,4 +1,3 @@
@ECHO off
powershell .\get_var.ps1 config.coco %1 > var.tmp
set /p %1= < var.tmp
del /q var.tmp