| 726 |
dpurdie |
1 |
#! /usr/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 |
# See JATS.BAT for a windows equivelent file
|
|
|
21 |
#
|
|
|
22 |
#.........................................................................#
|
|
|
23 |
#
|
|
|
24 |
#
|
|
|
25 |
# Minimal JATS environment variables
|
|
|
26 |
#
|
|
|
27 |
# GBE_MACHTYPE - The type of this machine
|
|
|
28 |
# GBE_PERL - The Perl binary to use
|
|
|
29 |
# GBE_CORE - The path to the JATS core
|
|
|
30 |
# GBE_DPKG - List of available dpkg_archives
|
|
|
31 |
# GBE_DPKG_LOCAL - Optional local dpkg_archives
|
|
|
32 |
# GBE_BUILDFILTER - Optional Build filter specification
|
|
|
33 |
# GBE_PLATFORM - Optional PLATFORM filter. Only these
|
|
|
34 |
# PLATFORMS will built and make
|
|
|
35 |
# A space-seperated list
|
|
|
36 |
#
|
|
|
37 |
GBE_MACHTYPE=`uname -p`
|
|
|
38 |
GBE_PERL=/usr/bin/perl
|
|
|
39 |
[ $GBE_CORE ] || GBE_CORE=/net/auperaunx26/export/devl/core_devl2
|
|
|
40 |
[ $GBE_DPKG ] || GBE_DPKG=/net/auperaunx26/export/devl/dpkg_archive
|
|
|
41 |
#GBE_DPKG_LOCAL=
|
|
|
42 |
GBE_PLATFORM=
|
|
|
43 |
GBE_BUILDFILTER='SOLARIS --TARGET=SOLARIS'
|
|
|
44 |
umask 022
|
|
|
45 |
# Toolset configuration
|
|
|
46 |
# Compiler specific initialisation ( if required )
|
|
|
47 |
#
|
|
|
48 |
#............... Internal Use. Do not modify............................#
|
|
|
49 |
#
|
|
|
50 |
GBE_BIN=${GBE_CORE}/BIN.${GBE_MACHTYPE}
|
|
|
51 |
GBE_TOOLS=
|
|
|
52 |
GBE_CONFIG=
|
|
|
53 |
|
|
|
54 |
export GBE_MACHTYPE GBE_PERL GBE_CORE GBE_DPKG GBE_DPKG_LOCAL GBE_PLATFORM
|
|
|
55 |
export GBE_BIN GBE_TOOLS GBE_CONFIG GBE_BUILDFILTER
|
|
|
56 |
|
|
|
57 |
#
|
|
|
58 |
# Start the JATS wrapper script passing all the user options
|
|
|
59 |
${GBE_PERL} ${GBE_CORE}/TOOLS/jats.pl $*
|