comparison octave-bug.in @ 5111:aa9bc151d2fa

[project @ 2005-01-19 03:15:31 by jwe]
author jwe
date Wed, 19 Jan 2005 03:15:31 +0000
parents b2ce28713791
children 9b0ff1aefcbe
comparison
equal deleted inserted replaced
5110:ea96466f98ea 5111:aa9bc151d2fa
61 PATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin:$PATH 61 PATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin:$PATH
62 export PATH 62 export PATH
63 63
64 TEMP=/tmp/octave-bug.$$ 64 TEMP=/tmp/octave-bug.$$
65 65
66 : ${EDITOR=emacs} 66 if [ -z "$DEFEDITOR" ] && [ -z "$EDITOR" ]; then
67 if [ -x /usr/bin/editor ]; then
68 DEFEDITOR=editor
69 elif [ -x /usr/local/bin/ce ]; then
70 DEFEDITOR=ce
71 elif [ -x /usr/local/bin/emacs ]; then
72 DEFEDITOR=emacs
73 elif [ -x /usr/contrib/bin/emacs ]; then
74 DEFEDITOR=emacs
75 elif [ -x /usr/bin/emacs ]; then
76 DEFEDITOR=emacs
77 elif [ -x /usr/bin/xemacs ]; then
78 DEFEDITOR=xemacs
79 elif [ -x /usr/contrib/bin/jove ]; then
80 DEFEDITOR=jove
81 elif [ -x /usr/local/bin/jove ]; then
82 DEFEDITOR=jove
83 elif [ -x /usr/bin/vi ]; then
84 DEFEDITOR=vi
85 else
86 echo "octave-bug: No default editor found: attempting to use vi" >&2
87 DEFEDITOR=vi
88 fi
89 fi
90
91 : ${EDITOR=$DEFEDITOR}
92
67 : ${PAGER=more} 93 : ${PAGER=more}
68 94
69 trap 'rm -f $TEMP $TEMP.x; exit 1' 1 2 3 13 15 95 trap 'rm -f $TEMP $TEMP.x; exit 1' 1 2 3 13 15
70 trap 'rm -f $TEMP $TEMP.x' 0 96 trap 'rm -f $TEMP $TEMP.x' 0
71 97