6491
|
1 #! /bin/sh |
2308
|
2 # info-emacs-octave-help |
7019
|
3 # |
|
4 # Copyright (C) 1996, 1997, 2005, 2007 Kurt Hornik |
|
5 # |
|
6 # This file is part of Octave. |
|
7 # |
|
8 # Octave is free software; you can redistribute it and/or modify it |
|
9 # under the terms of the GNU General Public License as published by the |
|
10 # Free Software Foundation; either version 3 of the License, or (at |
|
11 # your option) any later version. |
|
12 # |
|
13 # Octave is distributed in the hope that it will be useful, but WITHOUT |
|
14 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
15 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
16 # for more details. |
|
17 # |
|
18 # You should have received a copy of the GNU General Public License |
|
19 # along with Octave; see the file COPYING. If not, see |
|
20 # <http://www.gnu.org/licenses/>. |
|
21 |
5428
|
22 # Written by KH <Kurt.Hornik@wu-wien.ac.at> on 1996/07/01 |
2792
|
23 # Updated by KH on 1997/03/04 |
7019
|
24 |
2308
|
25 # Make Octave's `help -i' use Emacs octave-help. |
2661
|
26 # Requires a running Emacs and gnuserv. |
7019
|
27 |
2792
|
28 cmd="(require 'octave-hlp)" |
2308
|
29 if [ $3 = "--directory" ]; |
|
30 then |
2792
|
31 cmd="$cmd (add-to-list 'Info-directory-list \"$4\")" |
|
32 shift 2 |
2308
|
33 fi |
|
34 cmd="$cmd (octave-help \"$4\")" |
6478
|
35 gnuclient -batch -q -eval "$cmd" |