[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH 1/3][XenBus] Allow rebranding file copyright string
Pass COPYRIGHT string from environment to override the copyright string that is embedded in the output binaries. Signed-off-by: Owen Smith <owen.smith@xxxxxxxxxx> --- build.ps1 | 4 ++++ include/version.tmpl | 1 + scripts/genfiles.ps1 | 1 + src/monitor/xenbus_monitor.rc | 2 +- src/xen/xen.rc | 2 +- src/xenbus/xenbus.rc | 2 +- src/xenfilt/xenfilt.rc | 2 +- 7 files changed, 10 insertions(+), 4 deletions(-) diff --git a/build.ps1 b/build.ps1 index 08b9715..a34e9a3 100644 --- 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" diff --git a/include/version.tmpl b/include/version.tmpl index d6f9a48..ce056d3 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 MAJOR_VERSION_STR "@MAJOR_VERSION@" #define MINOR_VERSION_STR "@MINOR_VERSION@" diff --git a/scripts/genfiles.ps1 b/scripts/genfiles.ps1 index d402696..4c58f03 100644 --- a/scripts/genfiles.ps1 +++ b/scripts/genfiles.ps1 @@ -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; diff --git a/src/monitor/xenbus_monitor.rc b/src/monitor/xenbus_monitor.rc index 090e5c8..457bdc5 100644 --- a/src/monitor/xenbus_monitor.rc +++ b/src/monitor/xenbus_monitor.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 "XENBUS" #define VER_PRODUCTVERSION MAJOR_VERSION,MINOR_VERSION,MICRO_VERSION,BUILD_NUMBER diff --git a/src/xen/xen.rc b/src/xen/xen.rc index 95d94b6..e9ce1b5 100644 --- a/src/xen/xen.rc +++ b/src/xen/xen.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 "XEN" #define VER_PRODUCTVERSION MAJOR_VERSION,MINOR_VERSION,MICRO_VERSION,BUILD_NUMBER diff --git a/src/xenbus/xenbus.rc b/src/xenbus/xenbus.rc index 9248d87..56504eb 100644 --- a/src/xenbus/xenbus.rc +++ b/src/xenbus/xenbus.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 "XENBUS" #define VER_PRODUCTVERSION MAJOR_VERSION,MINOR_VERSION,MICRO_VERSION,BUILD_NUMBER diff --git a/src/xenfilt/xenfilt.rc b/src/xenfilt/xenfilt.rc index 4949492..3db5fbf 100644 --- a/src/xenfilt/xenfilt.rc +++ b/src/xenfilt/xenfilt.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 "XENFILT" #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 |