Subversion Repositories DevTools

Rev

Rev 5909 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#! /bin/bash
#
# Module name   : jats.sh
# Module type   : Makefile system
# Compiler(s)   :
# Environment(s): n/a
#
# Description:
#       Template for a BASH file to simplify access to a wrapper
#       script to simplify use of JATS components.
#
#       Tailor the environment variables and place within your PATH
#       This is a Bourne Shell script.
#       It has been named jats.sh to indicate that it is not a C-Shell
#       Feel free to:
#           Rename it to "jats"
#           Copy the file and put it in your path
#           Modify the definitions of GBE_xxxx as described below
#
#       Note: Global configuration may be placed in /etc/profile so that all
#             users of the machine get a defined config.
#
#       See JATS.BAT for a windows equivalent file
#
# Package: PACKAGE_TAG
# Version: VERSION_TAG
#.........................................................................#

#
#
#     Important JATS environment variables
#
#     GBE_PERL                - The Perl binary to use
#     GBE_MACHTYPE            - The type of this machine
#     GBE_CORE                - The path to the JATS core
#     GBE_DPKG                - The main dpkg_archives repository
#     GBE_DPKG_CACHE          - Optional cache archives
#     GBE_DPKG_LOCAL          - Optional local archives
#     GBE_DPKG_STORE          - Optional global archive store
#     GBE_DPKG_REPLICA        - Optional package archive store
#     GBE_DPLY                - Optional Deployment archive
#     GBE_BUILDFILTER         - Optional Build filter specification
#     GBE_PLATFORM            - Optional PLATFORM filter. Only these
#                               PLATFORMS will built and make
#                               A space-seperated list
#     GBE_ABT                 - Special. Set by the Auto Build Tool
#     GBE_JATS_VERSION        - Specific version of JATS to be used
#     GBE_VIEWBASE            - Base directory for creating ClearCase views
#     GBE_VCS                 - Default Version Control System (cc or svn)
#
#    Use "jats man EnvVars" for a complete description of environment variables
#
[ "$GBE_PERL" ]         || GBE_PERL=/usr/bin/perl
[ "$GBE_MACHTYPE" ]     || GBE_MACHTYPE=
[ "$GBE_DPKG" ]         || GBE_DPKG=/net/auperaarc01/export/devl/dpkg_archive
[ "$GBE_DPKG_CACHE" ]   || GBE_DPKG_CACHE=
[ "$GBE_DPKG_LOCAL" ]   || GBE_DPKG_LOCAL=
[ "$GBE_DPKG_STORE" ]   || GBE_DPKG_STORE=
[ "$GBE_DPKG_REPLICA" ] || GBE_DPKG_REPLICA=
[ "$GBE_DPLY" ]         || GBE_DPLY=
[ "$GBE_CORE" ]         || GBE_CORE=$GBE_DPKG/PACKAGE_TAG/VERSION_TAG
[ "$GBE_PLATFORM" ]     || GBE_PLATFORM=
[ "$GBE_VIEWBASE" ]     || GBE_VIEWBASE=
[ "$GBE_VCS" ]          || GBE_VCS='svn'
[ "$GBE_BUILDFILTER" ]  || GBE_BUILDFILTER='SOLARIS'

# Toolset configuration
#   Compiler specific initialisation ( if required )
#
# Java Compilers
#JAVA_HOME_1_4=
#JAVA_HOME_1_5=
#JAVA_HOME_1_6=
#JAVA_HOME_1_7=
#export JAVA_HOME_1_4 JAVA_HOME_1_5 JAVA_HOME_1_6 JAVA_HOME_1_7

# Release Manager configuration
# Essential for ABT use. Normally optional
# Normally set globaly on a 'BuildMachine'
#
#[ "$GBE_RM_LOCATION" ] || GBE_RM_LOCATION='jdbc:oracle:thin:@auawsards001.vix.local:1521:RELEASEM'
#[ "$GBE_RM_USERNAME" ] || GBE_RM_USERNAME='MS_READONLY'
#[ "$GBE_RM_PASSWORD" ] || GBE_RM_PASSWORD='MS_READONLY'
#[ "$GBE_RM_URL" ]      || GBE_RM_URL='http://bms:8002/ManagerSuite/Release_Manager'

#[ "$GBE_DM_LOCATION" ] || GBE_DM_LOCATION=$GBE_RM_LOCATION
#[ "$GBE_DM_USERNAME" ] || GBE_DM_USERNAME=$GBE_RM_USERNAME
#[ "$GBE_DM_PASSWORD" ] || GBE_DM_PASSWORD=$GBE_RM_PASSWORD
#[ "$GBE_DM_URL" ]      || GBE_DM_URL='http://bms:8002/ManagerSuite/Deployment_Manager'

#[ "$GBE_CQ_LOCATION" ] || GBE_CQ_LOCATION=jdbc:jtds:sqlserver://AUPERASQL05:1433:master
#[ "$GBE_CQ_USERNAME" ] || GBE_CQ_USERNAME=release_manager
#[ "$GBE_CQ_PASSWORD" ] || GBE_CQ_PASSWORD=release_manager

#export GBE_RM_LOCATION GBE_RM_USERNAME GBE_RM_PASSWORD GBE_RM_URL
#export GBE_DM_LOCATION GBE_DM_USERNAME GBE_DM_PASSWORD GBE_DM_URL
#export GBE_CQ_LOCATION GBE_CQ_USERNAME GBE_CQ_PASSWORD

# SubVersion Support
#GBE_SVN_USERNAME=xxxx
#GBE_SVN_PASSWORD=xxxx
#[ "$GBE_SVN_PATH" ] || GBE_SVN_PATH=/opt/CollabNet_Subversion/bin
#[ "$GBE_SVN_AUPERASVN01_URL" ] || GBE_SVN_AUPERASVN01_URL=https://auawsasvn001.vix.local/svn
#[ "$GBE_SVN_AUPERASVN02_URL" ] || GBE_SVN_AUPERASVN02_URL=https://auawsasvn002.vix.local/svn
#[ "$GBE_SVN_FRBESASVN01_URL" ] || GBE_SVN_FRBESASVN01_URL=http://frbesasvn01.frbesa.erggroup.com/svn
#[ "$GBE_SVN_URL" ]             || GBE_SVN_URL=https://auawsasvn001.vix.local/svn

#
# Default umask for security
#
umask 022

#............... Internal Use. Do not modify............................#
#
GBE_BIN=
GBE_TOOLS=
GBE_CONFIG=
GBE_SCRIPT="$0 $*"

export GBE_MACHTYPE GBE_PERL GBE_CORE GBE_DPKG GBE_DPKG_CACHE GBE_DPKG_LOCAL
export GBE_PLATFORM GBE_BIN GBE_TOOLS GBE_CONFIG GBE_BUILDFILTER GBE_SCRIPT
export GBE_DPKG_STORE GBE_DPLY GBE_DPKG_REPLICA

#
#     Start the JATS wrapper script passing all the user options
${GBE_PERL} ${GBE_CORE}/TOOLS/jats.pl "$@"