#!/bin/csh -f
#
# Load a gif file on the root window.
# Usage:
# loadgif <zoom> <pathname>
#
set bindir=${hosttype}bin
if($1 == "" || $2 == "") then
   echo "Usage:"
   echo "loadgif zoom pathname"
else
   if($MONITOR == color) then
      xsetbg -zoom $1 $2>/dev/null&
   else
      if($hosttype == decmips) then
         xloadimage.old -onroot -border black -center -zoom $1 $2>/dev/null&
      else
         xloadimage -onroot -border black -center -zoom $1 $2>/dev/null&
      endif
   endif
endif
