#!/bin/sh
UUDECODE=uudecode
DISPLAY_CMD=display

if ! type "$UUDECODE" > /dev/null 2>&1; then
	echo "Please install 'uudecode' to use this script." >&2
	exit 1
fi

if ! type "$DISPLAY_CMD" > /dev/null 2>&1; then
	echo "Please install 'display' to use this script." >&2
	exit 1
fi

$UUDECODE -o - "$1" | $DISPLAY_CMD -
