Subversion Repositories DevTools

Rev

Blame | Last modification | View Log | RSS feed

#! /bin/bash
if [ -z "$GBE_CORE" ] ; then
    #   Use GBE_DPKG_REPLICA, then GBE_DPKG
    if [ -n "$GBE_DPKG_REPLICA" ] ; then
        DPKG=$GBE_DPKG_REPLICA
        DPKGNAME=GBE_DPKG_REPLICA
    elif [ -n "$GBE_DPKG" ] ; then
        DPKG=$GBE_DPKG
        DPKGNAME=GBE_DPKG
    else
        echo "Error: No suitable package store found"
        exit 1
    fi

    if [ ! -d $DPKG ] ; then
        echo "Error: EnvVar $DPKGNAME does not reference a directory"
        exit 1
    fi
    # Set GBE_CORE
    GBE_CORE=$DPKG/core_devl/jats2_current
fi
if [ ! -f $GBE_CORE/TOOLS/jats.sh ] ; then
    echo "Error: JATS script not found"
    echo "       $GBE_CORE/TOOLS/jats.sh"
    exit 1
fi

export GBE_CORE
exec $GBE_CORE/TOOLS/jats.sh "$@"