Subversion Repositories DevTools

Rev

Rev 4538 | Rev 4898 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4538 Rev 4688
Line 1... Line 1...
1
#! /bin/bash
1
#! /bin/bash
2
#   This script should be placed into /usr/local/bin as 'jats'
-
 
3
#   Its function is to use the local definition of GBE_DPKG to reference the
-
 
4
#   network vesrion of JATS
-
 
5
#
-
 
6
if [ -z $GBE_DPKG ] ; then
-
 
7
        echo "Error: EnvVar GBE_DPKG is not defined"
-
 
8
        exit 1
-
 
9
fi
-
 
10
 
2
 
-
 
3
#   Use GBE_DPKG_STORE, then GBE_DPKG
11
if [ ! -d $GBE_DPKG ] ; then
4
if [ -n $GBE_DPKG_STORE ] ; then
-
 
5
    DPKG=$GBE_DPKG_STORE
-
 
6
    DPKGNAME=GBE_DPKG_STORE
-
 
7
elif [ -z $DPKG ] ; then
-
 
8
    DPKG=$GBE_DPKG
-
 
9
    DPKGNAME=GBE_DPKG
-
 
10
else
12
        echo "Error: EnvVar GBE_DPKG does not reference a directory"
11
    echo "Error: No suitable package store found"
13
        exit 1
12
    exit 1
14
fi
13
fi
15
 
14
 
16
if [ ! -f $GBE_DPKG/core_devl/jats2_current/TOOLS/jats.sh ] ; then
15
if [ ! -d $DPKG ] ; then
17
        echo "Error: JATS script not found"
-
 
18
        echo "       $GBE_DPKG/core_devl/jats2_current/TOOLS/jats.sh"
16
    echo "Error: EnvVar $DPKGNAME does not reference a directory"
19
        exit 1
17
    exit 1
20
fi
18
fi
21
 
19
 
-
 
20
# Set GBE_CORE
22
exec $GBE_DPKG/core_devl/jats2_current/TOOLS/jats.sh "$@"
21
GBE_CORE=$DPKG/core_devl/jats2_current
-
 
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
23
 
27
 
-
 
28
export GBE_CORE
-
 
29
exec $GBE_CORE/TOOLS/jats.sh "$@"