Skip to content

Commit

Permalink
Switch to ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanScherer committed Mar 25, 2017
1 parent 144070e commit 2c31a0f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ $files | ForEach-Object {
Write-Host $_
$dir = $_ -replace "\/[^\/]+$", ""
$dir = $dir -replace "/", "\"
if (Test-Path "$dir\build.bat") {
if (Test-Path "$dir\build.ps1") {
Write-Host "Storing $dir for build"
$dirs.Set_Item($dir, 1)
} else {
$dir = $dir -replace "\\[^\\]+$", ""
if (Test-Path "$dir\build.bat") {
if (Test-Path "$dir\build.ps1") {
Write-Host "Storing $dir for build"
$dirs.Set_Item($dir, 1)
}
Expand All @@ -38,7 +38,7 @@ $dirs.GetEnumerator() | Sort-Object Name | ForEach-Object {
$dir = $_.Name
Write-Host Building in directory $dir
pushd $dir
. .\build.bat
.\build.ps1
popd
}

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions deploy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ $files | ForEach-Object {
Write-Host $_
$dir = $_ -replace "\/[^\/]+$", ""
$dir = $dir -replace "/", "\"
if (Test-Path "$dir\push.bat") {
if (Test-Path "$dir\push.ps1") {
Write-Host "Storing $dir for deployment"
$dirs.Set_Item($dir, 1)
} else {
$dir = $dir -replace "\\[^\\]+$", ""
if (Test-Path "$dir\push.bat") {
if (Test-Path "$dir\push.ps1") {
Write-Host "Storing $dir for deployment"
$dirs.Set_Item($dir, 1)
}
Expand All @@ -41,6 +41,6 @@ $dirs.GetEnumerator() | Sort-Object Name | ForEach-Object {
$dir = $_.Name
Write-Host Building in directory $dir
pushd $dir
. .\push.bat
.\push.ps1
popd
}
6 changes: 3 additions & 3 deletions test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ $files | ForEach-Object {
Write-Host $_
$dir = $_ -replace "\/[^\/]+$", ""
$dir = $dir -replace "/", "\"
if (Test-Path "$dir\test.bat") {
if (Test-Path "$dir\test.ps1") {
Write-Host "Storing $dir for test"
$dirs.Set_Item($dir, 1)
} else {
$dir = $dir -replace "\\[^\\]+$", ""
if (Test-Path "$dir\test.bat") {
if (Test-Path "$dir\test.ps1") {
Write-Host "Storing $dir for test"
$dirs.Set_Item($dir, 1)
}
Expand All @@ -34,6 +34,6 @@ $dirs.GetEnumerator() | Sort-Object Name | ForEach-Object {
$dir = $_.Name
Write-Host Testing in directory $dir
pushd $dir
. .\test.bat
.\test.ps1
popd
}

0 comments on commit 2c31a0f

Please sign in to comment.