summaryrefslogtreecommitdiffstats
path: root/hostTools/scripts/nightlybuild/voice/cxc_nbrt_genlabel.sh
diff options
context:
space:
mode:
authorroot <root@lamia.panaceas.james.local>2015-12-19 14:18:43 +0000
committerroot <root@lamia.panaceas.james.local>2015-12-19 14:18:43 +0000
commit71478fd62d8483483abb34609cdabb7f9cbadfd6 (patch)
tree37b8eaba1ffe2d5f775227911eb0ed6fdc3c9553 /hostTools/scripts/nightlybuild/voice/cxc_nbrt_genlabel.sh
parent1a2238d1bddc823df06f67312d96ccf9de2893cc (diff)
downloadbootloader-71478fd62d8483483abb34609cdabb7f9cbadfd6.tar.gz
bootloader-71478fd62d8483483abb34609cdabb7f9cbadfd6.tar.bz2
bootloader-71478fd62d8483483abb34609cdabb7f9cbadfd6.zip
Add hostTools from https://github.com/Noltari/cfe_bcm63xx
Diffstat (limited to 'hostTools/scripts/nightlybuild/voice/cxc_nbrt_genlabel.sh')
-rw-r--r--hostTools/scripts/nightlybuild/voice/cxc_nbrt_genlabel.sh34
1 files changed, 34 insertions, 0 deletions
diff --git a/hostTools/scripts/nightlybuild/voice/cxc_nbrt_genlabel.sh b/hostTools/scripts/nightlybuild/voice/cxc_nbrt_genlabel.sh
new file mode 100644
index 0000000..51a79ba
--- /dev/null
+++ b/hostTools/scripts/nightlybuild/voice/cxc_nbrt_genlabel.sh
@@ -0,0 +1,34 @@
+#!/bin/bash
+#------------------------------------------------------------------------------
+# Broadcom Canada Ltd., Copyright 2001-2003
+#
+# Filename: cxc_nbrt_genlabel.sh
+# Purpose: Generates a set file for the CXNB_LABEL and CXNB_OUTPUT_DIR env.
+# variables used by Nightly build and Regression testing scripts
+#------------------------------------------------------------------------------
+
+setFileName=cxc_nbrt_setlabel.bat
+
+#remove old setfile
+rm -f ${setFileName}
+
+#Take snapshot of date and time to set up logging.
+DATE=`date +"%y_%m_%d"`
+TIME=`date +"%H_%M_%S"`
+LABEL=${DATE}.${TIME}.${CXNB_LABEL_SUFFIX}
+EMAIL_LABEL=`date +"%A, %B %e %Y, %T"`
+
+echo ":: ------------------------------------------------------------------------------" >>${setFileName}
+echo ":: Broadcom Canada Ltd., Copyright 2001 - 2003" >>${setFileName}
+echo ":: " >>${setFileName}
+echo ":: Filename: cxc_nbrt_setlabel.bat" >>${setFileName}
+echo ":: Purpose: Sets CXNB_LABEL and CXNB_OUTPUT_DIR environment variables" >>${setFileName}
+echo ":: needed for the Nightly Build and Regression Testing scripts" >>${setFileName}
+echo ":: NOTE: This is an automatically generated file." >>${setFileName}
+echo ":: Do *NOT* edit manually!" >>${setFileName}
+echo ":: ------------------------------------------------------------------------------" >>${setFileName}
+echo " " >>${setFileName}
+echo "set CXNB_LABEL=${LABEL}" >>${setFileName}
+echo "set CXNB_EMAIL_DATE=${EMAIL_LABEL}" >>${setFileName}
+echo "set CXNB_OUTPUT_DIR=${CXNB_BASECC_LOCAL_LOG_PATH}\\${LABEL}" >>${setFileName}
+