Subversion Repositories DevTools

Rev

Rev 227 | Rev 237 | Go to most recent revision | Details | Compare with Previous | 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
#
229 dpurdie 23
#       See JATS.BAT for a windows equivalent file
227 dpurdie 24
#
229 dpurdie 25
# Package: PACKAGE_TAG
26
# Version: VERSION_TAG
227 dpurdie 27
#.........................................................................#
28
 
29
#
30
#
31
#     Important JATS environment variables
32
#
33
#     GBE_PERL                - The Perl binary to use
34
#     GBE_MACHTYPE            - The type of this machine
35
#     GBE_CORE                - The path to the JATS core
36
#     GBE_DPKG                - The main dpkg_archives repository
37
#     GBE_DPKG_CACHE          - Optional cache archives
38
#     GBE_DPKG_LOCAL          - Optional local archives
39
#     GBE_DPKG_STORE          - Optional global archive store
40
#     GBE_DPLY                - Optional Deployment archive
41
#     GBE_BUILDFILTER         - Optional Build filter specification
42
#     GBE_PLATFORM            - Optional PLATFORM filter. Only these
43
#                               PLATFORMS will built and make
44
#                               A space-seperated list
45
#     GBE_ABT                 - Special. Set by the Auto Build Tool
46
#     GBE_JATS_VERSION        - Specific version of JATS to be used
47
#     GBE_VIEWBASE            - Base directory for creating ClearCase views
48
#
49
#    Use "jats -man" for a complete description of environment variables
50
#
51
GBE_PERL=/usr/bin/perl
52
[ "$GBE_MACHTYPE" ]    || GBE_MACHTYPE=
53
[ "$GBE_DPKG" ]        || GBE_DPKG=/net/auperaunx26/export/devl/dpkg_archive
229 dpurdie 54
[ "$GBE_CORE" ]        || GBE_CORE=$GBE_DPKG/PACKAGE_TAG/VERSION_TAG
227 dpurdie 55
[ "$GBE_DPKG_CACHE" ]  || GBE_DPKG_CACHE=
56
[ "$GBE_DPKG_LOCAL" ]  || GBE_DPKG_LOCAL=
57
[ "$GBE_DPKG_STORE" ]  || GBE_DPKG_STORE=
58
[ "$GBE_DPLY" ]        || GBE_DPLY=
59
[ "$GBE_PLATFORM" ]    || GBE_PLATFORM=
60
[ "$GBE_VIEWBASE" ]    || GBE_VIEWBASE=
61
[ "$GBE_BUILDFILTER" ] || GBE_BUILDFILTER='SOLARIS'
62
 
63
# Toolset configuration
64
#   Compiler specific initialisation ( if required )
65
#
66
# Java Compilers
67
#JAVA_HOME_1_4=
68
#JAVA_HOME_1_5=
69
#JAVA_HOME_1_6=
70
#export JAVA_HOME_1_4 JAVA_HOME_1_5 JAVA_HOME_1_6
71
 
72
# Release Manager configuration
73
# Essential for ABT use. Normally optional
74
# Normally set globaly on a 'BuildMachine'
75
#GBE_RM_LOCATION=
76
#GBE_RM_USERNAME=
77
#GBE_RM_PASSWORD=
78
#GBE_RM_URL=
79
#GBE_DM_LOCATION=${GBE_RM_LOCATION}
80
#GBE_DM_USERNAME=
81
#GBE_DM_PASSWORD=
82
#GBE_DM_URL=
83
#export GBE_RM_LOCATION GBE_RM_USERNAME GBE_RM_PASSWORD GBE_RM_URL
84
#export GBE_DM_LOCATION GBE_DM_USERNAME GBE_DM_PASSWORD GBE_DM_URL
85
 
86
#
87
# Default umask for security
88
#
89
umask 022
90
 
91
#............... Internal Use. Do not modify............................#
92
#
93
GBE_BIN=
94
GBE_TOOLS=
95
GBE_CONFIG=
96
GBE_SCRIPT="$0 $*"
97
 
98
export GBE_MACHTYPE GBE_PERL GBE_CORE GBE_DPKG GBE_DPKG_CACHE GBE_DPKG_LOCAL
99
export GBE_PLATFORM GBE_BIN GBE_TOOLS GBE_CONFIG GBE_BUILDFILTER GBE_SCRIPT
100
export GBE_DPKG_STORE GBE_DPLY
101
 
102
#
103
#     Start the JATS wrapper script passing all the user options
104
${GBE_PERL} ${GBE_CORE}/TOOLS/jats.pl $*