Merge "Issue #2033 - windows build updates for etc directory deployment" into development

Former-commit-id: f6e6932434 [formerly f6e6932434 [formerly 3a1e9baf2c593ee99f9b0299debceafab653fc46]]
Former-commit-id: 7ddd665597
Former-commit-id: 6a33ba460f
This commit is contained in:
Bryan Kowal 2013-10-08 15:38:20 -05:00 committed by Gerrit Code Review
commit 78e7109310

View file

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