GetExtension, getDownload, getVar and getText works now
This commit is contained in:
parent
ed12b644ca
commit
cfb8ef0638
4 changed files with 32 additions and 9 deletions
scripts/windows/coco-dev-setup/batch
|
@ -14,11 +14,19 @@
|
||||||
<gitbash>https://msysgit.googlecode.com/files/Git-1.8.5.2-preview20131230.exe</gitbash>
|
<gitbash>https://msysgit.googlecode.com/files/Git-1.8.5.2-preview20131230.exe</gitbash>
|
||||||
</general>
|
</general>
|
||||||
<win7>
|
<win7>
|
||||||
<b32>mongodb=http://fastdl.mongodb.org/win32/mongodb-win32-i386-2.5.4.zip</b32>
|
<b32>
|
||||||
<b64>mongodb=http://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-2.5.4.zip</b64>
|
<mongodb>http://fastdl.mongodb.org/win32/mongodb-win32-i386-2.5.4.zip</mongodb>
|
||||||
|
</b32>
|
||||||
|
<b64>
|
||||||
|
<mongodb>http://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-2.5.4.zip</mongodb>
|
||||||
|
</b64>
|
||||||
</win7>
|
</win7>
|
||||||
<vista>
|
<vista>
|
||||||
<b32>mongodb=http://fastdl.mongodb.org/win32/mongodb-win32-i386-2.5.4.zip</b32>
|
<b32>
|
||||||
<b64>mongodb=http://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2.5.4.zip</b64>
|
<mongodb>http://fastdl.mongodb.org/win32/mongodb-win32-i386-2.5.4.zip</mongodb>
|
||||||
|
</b32>
|
||||||
|
<b64>
|
||||||
|
<mongodb>http://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2.5.4.zip</mongodb>
|
||||||
|
</b64>
|
||||||
</vista>
|
</vista>
|
||||||
</variables>
|
</variables>
|
|
@ -1,3 +0,0 @@
|
||||||
for /f "delims=" %%a in ('..\\utilities\\get_category.exe %*') do (
|
|
||||||
%%a
|
|
||||||
)
|
|
|
@ -1,3 +1,3 @@
|
||||||
for /f "delims=" %%a in ('..\\utilities\\get_extension.exe %1 %2') do (
|
for /F "delims=" %%F in ('call run_script .\\get_extension.ps1 %1') do (
|
||||||
%%a
|
set "%2=%%F"
|
||||||
)
|
)
|
18
scripts/windows/coco-dev-setup/batch/scripts/get_extension.ps1
Executable file
18
scripts/windows/coco-dev-setup/batch/scripts/get_extension.ps1
Executable file
|
@ -0,0 +1,18 @@
|
||||||
|
$url = ($args[0].ToLower())
|
||||||
|
|
||||||
|
if($url.Contains("zip"))
|
||||||
|
{
|
||||||
|
Write-Host "zip"
|
||||||
|
}
|
||||||
|
elseif($url.Contains("exe"))
|
||||||
|
{
|
||||||
|
Write-Host "exe"
|
||||||
|
}
|
||||||
|
elseif($url.Contains("msi"))
|
||||||
|
{
|
||||||
|
Write-Host "msi"
|
||||||
|
}
|
||||||
|
elseif($url.Contains("tar.gz"))
|
||||||
|
{
|
||||||
|
Write-Host "tar.gz"
|
||||||
|
}
|
Reference in a new issue