]> xenbits.xensource.com Git - pvdrivers/win/xenvif.git/commitdiff
Allow rebranding file copyright string
authorOwen Smith <owen.smith@citrix.com>
Thu, 23 Feb 2023 09:52:40 +0000 (09:52 +0000)
committerPaul Durrant <pdurrant@amazon.com>
Thu, 23 Mar 2023 16:46:02 +0000 (16:46 +0000)
Pass COPYRIGHT string from environment to override the copyright string
that is embedded in the output binaries.

Signed-off-by: Owen Smith <owen.smith@citrix.com>
build.ps1
include/version.tmpl
scripts/genfiles.ps1
src/xenvif/xenvif.rc

index 08b9715ce95f9109ae1ea3a9dec32f730a7fc0c0..a34e9a3c32af23424d22384a546f6bcdfdb92e1a 100644 (file)
--- a/build.ps1
+++ b/build.ps1
@@ -88,6 +88,10 @@ if ([string]::IsNullOrEmpty($Env:PRODUCT_NAME)) {
        Set-Item -Path Env:PRODUCT_NAME -Value 'Xen'
 }
 
+if ([string]::IsNullOrEmpty($Env:COPYRIGHT)) {
+       Set-Item -Path Env:COPYRIGHT -Value 'Copyright (c) Xen Project.'
+}
+
 if ([string]::IsNullOrEmpty($Env:BUILD_NUMBER)) {
        if (Test-Path ".build_number") {
                $BuildNum = Get-Content -Path ".build_number"
index d6f9a481d621927cae90fc7ae520a2e21368b763..ce056d34c22b6d8ac41cf5219ea9ebd81c39b0dc 100644 (file)
@@ -2,6 +2,7 @@
 #define PRODUCT_NAME_STR     "@PRODUCT_NAME@"
 #define VENDOR_PREFIX_STR    "@VENDOR_PREFIX@"
 #define VENDOR_DEVICE_ID_STR "@VENDOR_DEVICE_ID@"
+#define COPYRIGHT_STR        "@COPYRIGHT@"
 
 #define MAJOR_VERSION_STR    "@MAJOR_VERSION@"
 #define MINOR_VERSION_STR    "@MINOR_VERSION@"
index b7ff7eab1521c2bd4980c5ccb1d0984644e51aff..760793af8a50238bd1dade5c3550ea22e6b3ac3d 100644 (file)
@@ -61,6 +61,7 @@ $Replacements = [ordered]@{
        'PRODUCT_NAME' = $Env:PRODUCT_NAME;
        'VENDOR_DEVICE_ID' = $Env:VENDOR_DEVICE_ID;
        'VENDOR_PREFIX' = $Env:VENDOR_PREFIX;
+       'COPYRIGHT' = $Env:COPYRIGHT;
 
        'MAJOR_VERSION' = $Env:MAJOR_VERSION;
        'MINOR_VERSION' = $Env:MINOR_VERSION;
index 55aedb1212d36fc23e490b2b91bac62e5e3c7d74..393de91da89a9d1f27c7fd77f14c548ad0af71a2 100644 (file)
@@ -41,7 +41,7 @@
 #include <version.h>
 
 #define        VER_COMPANYNAME_STR         VENDOR_NAME_STR
-#define VER_LEGALCOPYRIGHT_STR      "Copyright (c) Citrix Systems Inc."
+#define VER_LEGALCOPYRIGHT_STR      COPYRIGHT_STR
 
 #define VER_PRODUCTNAME_STR         "XENVIF"
 #define VER_PRODUCTVERSION          MAJOR_VERSION,MINOR_VERSION,MICRO_VERSION,BUILD_NUMBER