[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [XENVBD PATCH v3 3/3] Collapse skipped template lines



While I believe this patch is only required for xenbus (possibly xenvbd) - I will apply it to all drivers, to maintain consistency

Owen

On Mon, Aug 4, 2025 at 7:51 PM Tu Dinh <ngoc-tu.dinh@xxxxxxxxxx> wrote:
This is needed to correctly generate multiline INF directives.

Signed-off-by: Tu Dinh <ngoc-tu.dinh@xxxxxxxxxx>
---
 scripts/genfiles.ps1 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/scripts/genfiles.ps1 b/scripts/genfiles.ps1
index 8b0b14b..a7d13ae 100644
--- a/scripts/genfiles.ps1
+++ b/scripts/genfiles.ps1
@@ -32,7 +32,9 @@ Function Copy-FileWithReplacements {
                                Write-Host "Skipping Line Containing " $_.Name
                                $line = $null
                        }
-                       $line = $line -replace $key, $_.Value
+                       if ($null -ne $line) {
+                               $line = $line -replace $key, $_.Value
+                       }
                }
                $line
        } |
--
2.50.1.windows.1



Ngoc Tu Dinh | Vates XCP-ng Developer

XCP-ng & Xen Orchestra - Vates solutions

web: https://vates.tech


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.