Rev 4580 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
#!/bin/sh## ${R_HOME}/bin/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" ];thenLATEX=${4}if [ "${LATEX}" = "false" ];thenecho "Cannot print, latex seems to be unavailable"exit 1fiDVIPS=${5}if [ "${DVIPS}" = "false" ];thenecho "Cannot print, dvips seems to be unavailable"exit 2fishiftODIR=`pwd`cd `dirname ${1}`${LATEX} "\\nonstopmode\\input{${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}.psfirm -f ${1}.aux ${1}.dvi ${1}.logfi