diff --git a/.gitignore b/.gitignore index 39526b2..78724f9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ **/bin **/obj +/site \ No newline at end of file diff --git a/tools/generate-compatibility/generate.ps1 b/tools/generate-compatibility/generate.ps1 index e752344..48cc4b3 100644 --- a/tools/generate-compatibility/generate.ps1 +++ b/tools/generate-compatibility/generate.ps1 @@ -1,3 +1,7 @@ +# +# generates compatibility-status.md markdown page +# + param ( ) @@ -39,8 +43,8 @@ function progress { [System.Environment]::SetEnvironmentVariable('DOTNET_SKIP_FIRST_TIME_EXPERIENCE', '1') # run collect features from php & peachpie: -$output_php = & invoke-Expression "php -f program.php" | Out-String -$output_peachpie = & invoke-Expression "dotnet run --no-logo" | Out-String +$output_php = & invoke-Expression "php -f ""$PSScriptRoot/program.php""" | Out-String +$output_peachpie = & invoke-Expression "dotnet run --no-logo -p ""$PSScriptRoot""" | Out-String $php = $output_php | ConvertFrom-Json $peachpie = $output_peachpie | ConvertFrom-Json diff --git a/tools/generate.ps1 b/tools/generate.ps1 new file mode 100644 index 0000000..3c8b2f2 --- /dev/null +++ b/tools/generate.ps1 @@ -0,0 +1,2 @@ +# generate docs/compatibility-status.md +invoke-expression -Command "$PSScriptRoot/generate-compatibility/generate.ps1" | Out-File -FilePath "$PSScriptRoot/../docs/compatibility-status.md" -Encoding UTF8