mirror of
https://github.com/Ed94/refactor.git
synced 2025-07-12 00:25:45 -07:00
Update readme, fix an issue with stb_image.refactor script (needed newline at eof), some script changes.
This commit is contained in:
@ -31,7 +31,7 @@ if ( -not( Test-Path $path_build ) )
|
||||
|
||||
# Start-Process meson $args_meson -NoNewWindow -Wait -WorkingDirectory $path_scripts
|
||||
Push-Location $path_scripts
|
||||
& meson $args_meson
|
||||
Invoke-Expression "& meson $args_meson"
|
||||
Pop-Location
|
||||
}
|
||||
|
||||
@ -44,7 +44,7 @@ if ( $type )
|
||||
|
||||
# Start-Process meson $args_meson -NoNewWindow -Wait -WorkingDirectory $path_scripts
|
||||
Push-Location $path_scripts
|
||||
meson $args_meson
|
||||
Invoke-Expression "& meson $args_meson"
|
||||
Pop-Location
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,6 @@ $path_project = Join-Path $path_root project
|
||||
$path_test = Join-Path $path_root test
|
||||
$path_thirdparty = Join-Path $path_root thirdparty
|
||||
|
||||
$file_spec = Join-Path $path_test zpl.refactor
|
||||
$refactor = Join-Path $path_build refactor.exe
|
||||
|
||||
# Gather the files to be formatted.
|
||||
@ -27,12 +26,7 @@ foreach ( $file in $targetFiles )
|
||||
|
||||
write-host "Beginning thirdpary refactor..."
|
||||
|
||||
$refactors = @(@())
|
||||
|
||||
if ( $args.Contains( "debug" ) )
|
||||
{
|
||||
$refactorParams += "-debug"
|
||||
}
|
||||
$file_spec = Join-Path $path_test zpl.refactor
|
||||
|
||||
$refactorParams = @(
|
||||
"-src=$(Join-Path $path_thirdparty "zpl.h")",
|
||||
@ -40,22 +34,28 @@ $refactorParams = @(
|
||||
"-spec=$($file_spec)"
|
||||
)
|
||||
|
||||
& $refactor $refactorParams
|
||||
|
||||
$refactors = @(@())
|
||||
$file_spec = Join-Path $path_test "stb_image.refactor"
|
||||
|
||||
if ( $args.Contains( "debug" ) )
|
||||
{
|
||||
$refactorParams += "-debug"
|
||||
}
|
||||
|
||||
write-host "`zpl refactor: " $refactorParams
|
||||
& $refactor $refactorParams
|
||||
|
||||
$file_spec = Join-Path $path_test "stb_image.refactor"
|
||||
|
||||
$refactorParams = @(
|
||||
"-src=$(Join-Path $path_thirdparty "stb_image.h")",
|
||||
"-dst=$(Join-Path $path_test "stb_image.refactored.h")",
|
||||
"-spec=$($file_spec)"
|
||||
)
|
||||
|
||||
if ( $args.Contains( "debug" ) )
|
||||
{
|
||||
$refactorParams += "-debug"
|
||||
}
|
||||
|
||||
write-host "`n`nstb_image refactor: " $refactorParams
|
||||
& $refactor $refactorParams
|
||||
|
||||
Write-Host "`nRefactoring complete`n"
|
||||
|
@ -35,4 +35,4 @@ $refactorParams = @(
|
||||
|
||||
& $refactor $refactorParams
|
||||
|
||||
Write-Host "`nRefactoring complete`n`n"
|
||||
Write-Host "`nRefactoring complete`n`n"
|
||||
|
Reference in New Issue
Block a user