$rxcpp = "rxcpp-4.0.0" $root = Resolve-Path "../.." $work = Join-Path $root "work" $src = Join-Path $root src $target = Join-Path $root "windows" Push-Location if (Test-Path $work) { Remove-Item -Force -Recurse $work } if (Test-Path $target\include\rxcpp) { Remove-Item -Force -Recurse $target\include\rxcpp } # expand unzip -q $src\rxcpp\$rxcpp -d $work Copy-Item $work\$rxcpp\Rx\v2\src\rxcpp $target\include\rxcpp -Recurse cd $root Remove-Item -Force -Recurse $work Pop-Location