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:
Bryan Kowal 2013-10-07 18:41:06 -05:00
parent dc45b582e1
commit 89c561ad89

View file

@ -16,6 +16,19 @@ function installCAVERepository([string]$feature_group, [string]$repo)
Remove-Item -recurse -force ${A2_PREPARE_CAVE_DIR}/$repo 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" echo "`n"
} }
@ -23,6 +36,10 @@ pushd .
cd ${A2_PREPARE_CAVE_DIR}\cave 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" echo "`n"
$feature_list = Get-Content "${A2_PREPARE_CAVE_DIR}\features.txt" $feature_list = Get-Content "${A2_PREPARE_CAVE_DIR}\features.txt"
Write-Host Feature Count = $feature_list.count Write-Host Feature Count = $feature_list.count