Subversion Repositories DevTools

Rev

Rev 4688 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#! /bin/bash

#   Use GBE_DPKG_REPLICA, then GBE_DPKG
if [ -n "$GBE_DPKG_REPLICA" ] ; then
    DPKG=$GBE_DPKG_REPLICA
    DPKGNAME=GBE_DPKG_REPLICA
elif [ -z "$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
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 "$@"