Rev 1814 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
#!/bin/sh## ${RHOME}/cmd/helpif [ "${1}" = "INDEX" ];thensubject=${2}shift 2for index in $*doif [ -f ${index} ];thenfile=`grep "^${subject} " ${index} | cut -f 2`if test -n "${file}"thenecho `dirname ${index}`/${file}exit 0fifidoneechoelif [ "${1}" = "PRINT" ];thenif [ "${LATEX}" = "false" ];thenecho "Cannot print, latex seems to be unavailable"exit 1fiif [ "${DVIPS}" = "false" ];thenecho "Cannot print, dvips seems to be unavailable"exit 2fishiftODIR=`pwd`cd `dirname ${1}`${LATEX} ${1} >/dev/null 2>&1${DVIPS} ${1} 2>/dev/nullif test -f ${1}.ps;thenecho "Saving help page to \`${2}.ps\'"mv ${1}.ps ${ODIR}/${2}.psfifi