Subversion Repositories DevTools

Rev

Rev 237 | Rev 289 | 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_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
#
#    Use "jats -man" for a complete description of environment variables
#
GBE_PERL=/usr/bin/perl
[ "$GBE_MACHTYPE" ]    || GBE_MACHTYPE=
[ "$GBE_DPKG" ]        || GBE_DPKG=/net/auperaunx26/export/devl/dpkg_archive
[ "$GBE_CORE" ]        || GBE_CORE=$GBE_DPKG/PACKAGE_TAG/VERSION_TAG
[ "$GBE_DPKG_CACHE" ]  || GBE_DPKG_CACHE=
[ "$GBE_DPKG_LOCAL" ]  || GBE_DPKG_LOCAL=
[ "$GBE_DPKG_STORE" ]  || GBE_DPKG_STORE=
[ "$GBE_DPLY" ]        || GBE_DPLY=
[ "$GBE_PLATFORM" ]    || GBE_PLATFORM=
[ "$GBE_VIEWBASE" ]    || GBE_VIEWBASE=
[ "$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=
#export JAVA_HOME_1_4 JAVA_HOME_1_5 JAVA_HOME_1_6

# Release Manager configuration
# Essential for ABT use. Normally optional
# Normally set globaly on a 'BuildMachine'
#GBE_RM_LOCATION=jdbc:oracle:thin:@auperaprm01:1521:RELEASEM
#GBE_RM_USERNAME=
#GBE_RM_PASSWORD=
#GBE_RM_URL=http://erg:8002/ManagerSuite/Release_Manager
#GBE_DM_LOCATION=%GBE_RM_LOCATION%
#GBE_DM_USERNAME=
#GBE_DM_PASSWORD=
#GBE_DM_URL=http://erg:8002/ManagerSuite/Deployment_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

#
# 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

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