home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / bin / viewer.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1996-10-14  |  368 b   |  17 lines

  1. #!/bin/sh
  2. # This script file is part of manutils for ADE.
  3. # It calls a viewer program specified in $1
  4. # with one filename argument as specified in $2.
  5. # It is meant to be invoked by man only.
  6.  
  7. if test $# -ne 2 ; then
  8.     echo "Usage: $0 cmd file"
  9.     exit 1
  10. fi
  11.  
  12. if test -f "$1" ; then
  13.     /bin/ixrun $1 `echo $2 | sed -e '/\/ade\//s//ade\:/'`
  14.     echo Done.
  15. fi
  16. exit 0
  17.