Subversion Repositories DevTools

Rev

Rev 229 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
227 dpurdie 1
#! /bin/bash
2
#
3
# Module name   : jats.sh
4
# Module type   : Makefile system
5
# Compiler(s)   :
6
# Environment(s): n/a
7
#
8
# Description:
9
#       Template for a BASH file to simplify access to a wrapper
10
#       script to simplify use of JATS components.
11
#
12
#       Tailor the environment variables and place within your PATH
13
#       This is a Bourne Shell script.
14
#       It has been named jats.sh to indicate that it is not a C-Shell
15
#       Feel free to:
16
#           Rename it to "jats"
17
#           Copy the file and put it in your path
18
#           Modify the definitions of GBE_xxxx as described below
19
#
20
#       Note: Global configuration may be placed in /etc/profile so that all
21
#             users of the machine get a defined config.
22
#
23
#       See JATS.BAT for a windows equivelent file
24
#
25
#.........................................................................#
26
 
27
#
28
#
29
#     Important JATS environment variables
30
#
31
#     GBE_PERL                - The Perl binary to use
32
#     GBE_MACHTYPE            - The type of this machine
33
#     GBE_CORE                - The path to the JATS core
34
#     GBE_DPKG                - The main dpkg_archives repository
35
#     GBE_DPKG_CACHE          - Optional cache archives
36
#     GBE_DPKG_LOCAL          - Optional local archives
37
#     GBE_DPKG_STORE          - Optional global archive store
38
#     GBE_DPLY                - Optional Deployment archive
39
#     GBE_BUILDFILTER         - Optional Build filter specification
40
#     GBE_PLATFORM            - Optional PLATFORM filter. Only these
41
#                               PLATFORMS will built and make
42
#                               A space-seperated list
43
#     GBE_ABT                 - Special. Set by the Auto Build Tool
44
#     GBE_JATS_VERSION        - Specific version of JATS to be used
45
#     GBE_VIEWBASE            - Base directory for creating ClearCase views
46
#
47
#    Use "jats -man" for a complete description of environment variables
48
#
49
GBE_PERL=/usr/bin/perl
50
[ "$GBE_MACHTYPE" ]    || GBE_MACHTYPE=
51
[ "$GBE_DPKG" ]        || GBE_DPKG=/net/auperaunx26/export/devl/dpkg_archive
52
[ "$GBE_CORE" ]        || GBE_CORE=$GBE_DPKG/core_devl/VERSION_TAG
53
[ "$GBE_DPKG_CACHE" ]  || GBE_DPKG_CACHE=
54
[ "$GBE_DPKG_LOCAL" ]  || GBE_DPKG_LOCAL=
55
[ "$GBE_DPKG_STORE" ]  || GBE_DPKG_STORE=
56
[ "$GBE_DPLY" ]        || GBE_DPLY=
57
[ "$GBE_PLATFORM" ]    || GBE_PLATFORM=
58
[ "$GBE_VIEWBASE" ]    || GBE_VIEWBASE=
59
[ "$GBE_BUILDFILTER" ] || GBE_BUILDFILTER='SOLARIS'
60
 
61
# Toolset configuration
62
#   Compiler specific initialisation ( if required )
63
#
64
# Java Compilers
65
#JAVA_HOME_1_4=
66
#JAVA_HOME_1_5=
67
#JAVA_HOME_1_6=
68
#export JAVA_HOME_1_4 JAVA_HOME_1_5 JAVA_HOME_1_6
69
 
70
# Release Manager configuration
71
# Essential for ABT use. Normally optional
72
# Normally set globaly on a 'BuildMachine'
73
#GBE_RM_LOCATION=
74
#GBE_RM_USERNAME=
75
#GBE_RM_PASSWORD=
76
#GBE_RM_URL=
77
#GBE_DM_LOCATION=${GBE_RM_LOCATION}
78
#GBE_DM_USERNAME=
79
#GBE_DM_PASSWORD=
80
#GBE_DM_URL=
81
#export GBE_RM_LOCATION GBE_RM_USERNAME GBE_RM_PASSWORD GBE_RM_URL
82
#export GBE_DM_LOCATION GBE_DM_USERNAME GBE_DM_PASSWORD GBE_DM_URL
83
 
84
#
85
# Default umask for security
86
#
87
umask 022
88
 
89
#............... Internal Use. Do not modify............................#
90
#
91
GBE_BIN=
92
GBE_TOOLS=
93
GBE_CONFIG=
94
GBE_SCRIPT="$0 $*"
95
 
96
export GBE_MACHTYPE GBE_PERL GBE_CORE GBE_DPKG GBE_DPKG_CACHE GBE_DPKG_LOCAL
97
export GBE_PLATFORM GBE_BIN GBE_TOOLS GBE_CONFIG GBE_BUILDFILTER GBE_SCRIPT
98
export GBE_DPKG_STORE GBE_DPLY
99
 
100
#
101
#     Start the JATS wrapper script passing all the user options
102
${GBE_PERL} ${GBE_CORE}/TOOLS/jats.pl $*