annotate emacs/info-emacs-octave-help @ 10843:229675bb7647 ss-3-3-52

version is now 3.3.52
author John W. Eaton <jwe@octave.org>
date Sun, 01 Aug 2010 11:49:45 -0400
parents 12dd0a7597ff
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6491
95e9ba7cb502 [project @ 2007-04-05 03:12:54 by jwe]
jwe
parents: 6478
diff changeset
1 #! /bin/sh
2308
2aa0453bfea3 [project @ 1996-07-11 19:40:38 by jwe]
jwe
parents:
diff changeset
2 # info-emacs-octave-help
7019
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 6491
diff changeset
3 #
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 6491
diff changeset
4 # Copyright (C) 1996, 1997, 2005, 2007 Kurt Hornik
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 6491
diff changeset
5 #
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 6491
diff changeset
6 # This file is part of Octave.
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 6491
diff changeset
7 #
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 6491
diff changeset
8 # Octave is free software; you can redistribute it and/or modify it
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 6491
diff changeset
9 # under the terms of the GNU General Public License as published by the
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 6491
diff changeset
10 # Free Software Foundation; either version 3 of the License, or (at
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 6491
diff changeset
11 # your option) any later version.
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 6491
diff changeset
12 #
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 6491
diff changeset
13 # Octave is distributed in the hope that it will be useful, but WITHOUT
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 6491
diff changeset
14 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 6491
diff changeset
15 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 6491
diff changeset
16 # for more details.
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 6491
diff changeset
17 #
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 6491
diff changeset
18 # You should have received a copy of the GNU General Public License
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 6491
diff changeset
19 # along with Octave; see the file COPYING. If not, see
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 6491
diff changeset
20 # <http://www.gnu.org/licenses/>.
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 6491
diff changeset
21
5428
2a16423e4aa0 [project @ 2005-08-23 18:38:27 by jwe]
jwe
parents: 2792
diff changeset
22 # Written by KH <Kurt.Hornik@wu-wien.ac.at> on 1996/07/01
2792
32259460c627 [project @ 1997-03-06 09:27:29 by jwe]
jwe
parents: 2661
diff changeset
23 # Updated by KH on 1997/03/04
7019
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 6491
diff changeset
24
2308
2aa0453bfea3 [project @ 1996-07-11 19:40:38 by jwe]
jwe
parents:
diff changeset
25 # Make Octave's `help -i' use Emacs octave-help.
2661
49d6c6ee7b03 [project @ 1997-02-04 05:51:43 by jwe]
jwe
parents: 2308
diff changeset
26 # Requires a running Emacs and gnuserv.
7019
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 6491
diff changeset
27
2792
32259460c627 [project @ 1997-03-06 09:27:29 by jwe]
jwe
parents: 2661
diff changeset
28 cmd="(require 'octave-hlp)"
2308
2aa0453bfea3 [project @ 1996-07-11 19:40:38 by jwe]
jwe
parents:
diff changeset
29 if [ $3 = "--directory" ];
2aa0453bfea3 [project @ 1996-07-11 19:40:38 by jwe]
jwe
parents:
diff changeset
30 then
2792
32259460c627 [project @ 1997-03-06 09:27:29 by jwe]
jwe
parents: 2661
diff changeset
31 cmd="$cmd (add-to-list 'Info-directory-list \"$4\")"
32259460c627 [project @ 1997-03-06 09:27:29 by jwe]
jwe
parents: 2661
diff changeset
32 shift 2
2308
2aa0453bfea3 [project @ 1996-07-11 19:40:38 by jwe]
jwe
parents:
diff changeset
33 fi
2aa0453bfea3 [project @ 1996-07-11 19:40:38 by jwe]
jwe
parents:
diff changeset
34 cmd="$cmd (octave-help \"$4\")"
6478
4da9255998e3 [project @ 2007-03-29 16:31:16 by jwe]
jwe
parents: 6475
diff changeset
35 gnuclient -batch -q -eval "$cmd"