Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6247 dpurdie 1
#! /bin/bash
2
if [ -z "$GBE_CORE" ] ; then
3
    #   Use GBE_DPKG_REPLICA, then GBE_DPKG
4
    if [ -n "$GBE_DPKG_REPLICA" ] ; then
5
        DPKG=$GBE_DPKG_REPLICA
6
        DPKGNAME=GBE_DPKG_REPLICA
7
    elif [ -n "$GBE_DPKG" ] ; then
8
        DPKG=$GBE_DPKG
9
        DPKGNAME=GBE_DPKG
10
    else
11
        echo "Error: No suitable package store found"
12
        exit 1
13
    fi
14
 
15
    if [ ! -d $DPKG ] ; then
16
        echo "Error: EnvVar $DPKGNAME does not reference a directory"
17
        exit 1
18
    fi
19
    # Set GBE_CORE
20
    GBE_CORE=$DPKG/core_devl/jats2_current
21
fi
22
if [ ! -f $GBE_CORE/TOOLS/jats.sh ] ; then
23
    echo "Error: JATS script not found"
24
    echo "       $GBE_CORE/TOOLS/jats.sh"
25
    exit 1
26
fi
27
 
28
export GBE_CORE
29
exec $GBE_CORE/TOOLS/jats.sh "$@"
30