From f40bf2019be50adaa7b71caea824609a2c0f0728 Mon Sep 17 00:00:00 2001 From: Konstantina Chremmou Date: Wed, 17 Feb 2021 01:52:21 +0000 Subject: [PATCH] Restored branding.sh for local build. Signed-off-by: Konstantina Chremmou --- .gitignore | 1 + Branding/branding.sh | 44 +++++++++++++++++++++++++++++++++++++++ scripts/xenadmin-build.sh | 8 +------ 3 files changed, 46 insertions(+), 7 deletions(-) create mode 100644 Branding/branding.sh diff --git a/.gitignore b/.gitignore index a1af129a3..50eb68a30 100644 --- a/.gitignore +++ b/.gitignore @@ -27,6 +27,7 @@ Thumbs.db packages/* !packages/DOTNET_BUILD_LOCATION +Branding/Hotfixes/* _ReSharper.*/ *.opensdf diff --git a/Branding/branding.sh b/Branding/branding.sh new file mode 100644 index 000000000..848886951 --- /dev/null +++ b/Branding/branding.sh @@ -0,0 +1,44 @@ +#!/bin/sh + +# Copyright (c) Citrix Systems, Inc. +# All rights reserved. +# +# Redistribution and use in source and binary forms, +# with or without modification, are permitted provided +# that the following conditions are met: +# +# * Redistributions of source code must retain the above +# copyright notice, this list of conditions and the +# following disclaimer. +# * Redistributions in binary form must reproduce the above +# copyright notice, this list of conditions and the +# following disclaimer in the documentation and/or other +# materials provided with the distribution. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND +# CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, +# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR +# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. + +BRANDING_COMPANY_NAME_LEGAL="[BRANDING_COMPANY_NAME_LEGAL]" +BRANDING_COMPANY_NAME_SHORT="[Citrix]" +BRANDING_PRODUCT_BRAND="[XenServer product]" +BRANDING_COMPANY_URL=www.citrix.com +BRANDING_SERVER="[XenServer]" +BRANDING_COMPANY_AND_PRODUCT="[Citrix XenServer]" +BRANDING_BRAND_CONSOLE="[XenCenter]" +BRANDING_BRAND_CONSOLE_NO_SPACE="[XenCenter]" +BRANDING_BRAND_CONSOLE_SHORT=XenCente +BRANDING_PV_TOOLS="[Citrix VM Tools]" +BRANDING_PRODUCT_VERSION_TEXT=0.0.0 +BRANDING_XC_PRODUCT_VERSION=0.0.0 diff --git a/scripts/xenadmin-build.sh b/scripts/xenadmin-build.sh index 82f9f9978..648b1c882 100644 --- a/scripts/xenadmin-build.sh +++ b/scripts/xenadmin-build.sh @@ -58,13 +58,7 @@ fi mkdir_clean ${SCRATCH_DIR} mkdir_clean ${OUTPUT_DIR} -if [ -f ${REPO}/Branding/branding.sh ]; then - source ${REPO}/Branding/branding.sh -else - ROOT="$(cd -P "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd )" - source ${ROOT}/xenadmin-branding/citrix/Branding/branding.sh #local dev -fi - +source ${REPO}/Branding/branding.sh source ${REPO}/scripts/re-branding.sh $1 #packages sources