
echo "Position to ACCOUNTFLEX BIN DIRECTORY" 
cd ..
cd ..

. fxsettar

if test "$1" = ""; then 
     echo "INSERT Diskette and Press Return"; 
     read answer; 
     fi

rm actqry.lst
find act/qryflex -type f -print  >> actqry.lst

if test "$1" = "-dir"
    then
        rm -f act/bin/actqry
        if test "$TARLIST2" = "-CAT"; then
            tar $TARLIST act/bin/actqry `cat actqry.lst`
        else
            tar $TARLIST act/bin/actqry $TARLIST2 actqry.lst
        fi
        rm -f act/bin/actqry.gz
        gzip act/bin/actqry
        cd act/bin
        cp actsetup actqry.gz "$2"
        exit
    fi



rm -f act/bin/actqry
if test "$TARLIST2" = "-CAT"; then
    tar $TARLIST act/bin/actqry `cat actqry.lst`
else
    tar $TARLIST act/bin/actqry $TARLIST2 actqry.lst
fi
tar $TARLIST act/bin/actqry $TARLIST2 actqry.lst  
rm -f act/bin/actqry.Z
cd act/bin
compress actqry
if test "$1" = "-Zdir"
    then
       cp actsetup actqry.Z "$2"
       exit
    fi

tar cvf $TARDRIVE actsetup actqry.Z
