


set `uname -a`
if test "$1" = "SCO_SV"; then
    UNCOMPRESS=uncompress
else
    UNCOMPRESS=`which uncompress 2> /dev/null`
    if test "$UNCOMPRESS" = ""; then
        UNCOMPRESS=`which gunzip 2> /dev/null`
    fi
    if test "$UNCOMPRESS" = ""; then
       # this is used for SCO where 'which' command is not available.
       UNCOMPRESS=uncompress
       echo "UNCOMPRESS ROUTINE DEFAULTING TO $UNCOMPRESS"
    fi
fi


if test -f qfsrc.z -a ! -f qfsrc.Z; then
    mv qfsrc.z qfsrc.Z
    fi 

if test -f actqry.z -a ! -f actqry.Z; then
    mv actqry.z actqry.Z
    fi 

if test -f qftar.z -a ! -f qftar.Z; then
    mv qftar.z qftar.Z
    fi 

if test -f qftar2.z -a ! -f qftar2.Z; then
    mv qftar2.z qftar2.Z
    fi 

if test -f qryflex_.gz; then
    gunzip qryflex_ 2> /dev/null
    tar xvf qryflex_ 2> /dev/null
    rm -f qryflex_ 2> /dev/null
    fi

if test -f qryflex_.Z; then
    $UNCOMPRESS qryflex_.Z 2> /dev/null
    tar xvf qryflex_ 2> /dev/null
    rm -f qryflex_ 2> /dev/null
    fi

$UNCOMPRESS qfsrc.Z  2> /dev/null 
tar xvf qfsrc 2> /dev/null
rm -f qfsrc 2> /dev/null

$UNCOMPRESS actqry.Z  2> /dev/null 
tar xvf actqry 2> /dev/null
rm -f actqry 2> /dev/null

$UNCOMPRESS qftar.Z  2> /dev/null 
tar xvf qftar 2> /dev/null
rm -f qftar 2> /dev/null

mv qftar2.Z qryflex 2> /dev/null
cd qryflex 2> /dev/null
$UNCOMPRESS qftar2.Z  2> /dev/null 
tar xvf qftar2 2> /dev/null
rm -f qftar2 2> /dev/null

