#!/bin/sh
# This script file is part of manutils for ADE.
# It calls a viewer program specified in $1
# with one filename argument as specified in $2.
# It is meant to be invoked by man only.

if test $# -ne 2 ; then
    echo "Usage: $0 cmd file"
    exit 1
fi

if test -f "$1" ; then
    /bin/ixrun $1 `echo $2 | sed -e '/\/ade\//s//ade\:/'`
    echo Done.
fi
exit 0
