#!/bin/sh
# Dvi files sometimes use other files from the same directory, so we cd
# to the file's directory before running xdvi, but only if there's only
# one file.
if [ $# -eq 1 ]
then
    cd `dirname $1`
fi

xdvi "$@"
