Issue #2033 - windows build updates for etc directory deployment
Change-Id: Icfb30220639eeefe01a03479f0a5248dcb5cf928 Former-commit-id:073fd49741
[formerly d51012b2e5685e547d0d8f3b3ccd0f4c4640b9dc] Former-commit-id:c5f6540e3c
This commit is contained in:
parent
dc45b582e1
commit
89c561ad89
1 changed files with 18 additions and 1 deletions
|
@ -14,7 +14,20 @@ function installCAVERepository([string]$feature_group, [string]$repo)
|
|||
if ($? -ne $true) { echo "ERROR: Unable to install feature: $feature_group."; echo "FATAL: Build Failed!"; EXIT 1; }
|
||||
|
||||
Remove-Item -recurse -force ${A2_PREPARE_CAVE_DIR}/$repo
|
||||
if ($? -ne $true) { EXIT 1; }
|
||||
if ($? -ne $true) { EXIT 1; }
|
||||
|
||||
pushd .
|
||||
cd plugins
|
||||
dir -rec | where { if (($_.fullname.split("\")).count -eq 7 -and `
|
||||
$_.name.equals("localization")){$_}} | ForEach-Object -process `
|
||||
{ $localizationDirectory = $_.fullname; `
|
||||
echo $localizationDirectory; `
|
||||
Copy-Item -force -recurse -path "${localizationDirectory}\*" -destination ${A2_PREPARE_CAVE_DIR}\cave\etc; `
|
||||
if ($? -ne $true) { EXIT 1; }; `
|
||||
Remove-Item -force -recurse ${localizationDirectory}; `
|
||||
if ($? -ne $true) { EXIT 1; } }
|
||||
if ($? -ne $true) { EXIT 1; }
|
||||
popd
|
||||
|
||||
echo "`n"
|
||||
}
|
||||
|
@ -23,6 +36,10 @@ pushd .
|
|||
|
||||
cd ${A2_PREPARE_CAVE_DIR}\cave
|
||||
|
||||
New-Item -path ${A2_PREPARE_CAVE_DIR}\cave `
|
||||
-name etc -type directory | Out-Null
|
||||
if ($? -ne $true) { EXIT 1; }
|
||||
|
||||
echo "`n"
|
||||
$feature_list = Get-Content "${A2_PREPARE_CAVE_DIR}\features.txt"
|
||||
Write-Host Feature Count = $feature_list.count
|
||||
|
|
Loading…
Add table
Reference in a new issue