[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH 1/3] [XenIface] Allow rebranding file copyright string
From: Owen Smith <owen.smith@xxxxxxxxxx> Pass COPYRIGHT string from environment to override the copyright string that is embedded in the output binaries. Note: Does not change the copyright string in xencontrol.dll, which is assigned to "Invisible Things Lab". This string is not rebrandable Signed-off-by: Owen Smith <owen.smith@xxxxxxxxxx> --- build.ps1 | 4 ++++ include/version.tmpl | 1 + scripts/genfiles.ps1 | 1 + src/xenagent/xenagent.rc | 2 +- src/xeniface/xeniface.rc | 2 +- 5 files changed, 8 insertions(+), 2 deletions(-) diff --git a/build.ps1 b/build.ps1 index 0d0f606..4943d99 100644 --- a/build.ps1 +++ b/build.ps1 @@ -92,6 +92,10 @@ if ([string]::IsNullOrEmpty($Env:OBJECT_PREFIX)) { Set-Item -Path Env:OBJECT_PREFIX -Value 'XenProject' } +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" diff --git a/include/version.tmpl b/include/version.tmpl index c675b9c..a72b1c6 100644 --- a/include/version.tmpl +++ b/include/version.tmpl @@ -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 OBJECT_PREFIX_STR "@OBJECT_PREFIX@" #define OBJECT_GUID(_Name) @OBJECT_PREFIX@ ## _Name ## _GUID diff --git a/scripts/genfiles.ps1 b/scripts/genfiles.ps1 index 64e087c..96a338c 100644 --- a/scripts/genfiles.ps1 +++ b/scripts/genfiles.ps1 @@ -62,6 +62,7 @@ $Replacements = [ordered]@{ 'VENDOR_DEVICE_ID' = $Env:VENDOR_DEVICE_ID; 'VENDOR_PREFIX' = $Env:VENDOR_PREFIX; 'OBJECT_PREFIX' = $Env:OBJECT_PREFIX; + 'COPYRIGHT' = $Env:COPYRIGHT; 'MAJOR_VERSION' = $Env:MAJOR_VERSION; 'MINOR_VERSION' = $Env:MINOR_VERSION; diff --git a/src/xenagent/xenagent.rc b/src/xenagent/xenagent.rc index f8d7fc0..ea40aec 100644 --- a/src/xenagent/xenagent.rc +++ b/src/xenagent/xenagent.rc @@ -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 "XENIFACE" #define VER_PRODUCTVERSION MAJOR_VERSION,MINOR_VERSION,MICRO_VERSION,BUILD_NUMBER diff --git a/src/xeniface/xeniface.rc b/src/xeniface/xeniface.rc index 8902799..c113fac 100644 --- a/src/xeniface/xeniface.rc +++ b/src/xeniface/xeniface.rc @@ -40,7 +40,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 "XENIFACE" #define VER_PRODUCTVERSION MAJOR_VERSION,MINOR_VERSION,MICRO_VERSION,BUILD_NUMBER -- 2.39.0.windows.1
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |