3295
|
1 #! /bin/sh |
|
2 |
4098
|
3 set -e |
|
4 |
3295
|
5 if test $# != 1; then |
|
6 d=. |
|
7 else |
|
8 d=$1 |
|
9 fi |
|
10 |
4098
|
11 if test -f gethelp; then |
5333
|
12 cat << EOF |
|
13 ### DO NOT EDIT! |
|
14 ### |
|
15 ### This file is generated automatically from the Octave sources. |
|
16 ### Edit those files instead and run make to update this file. |
|
17 |
|
18 EOF |
4098
|
19 find $d -name '*.m' | \ |
|
20 sed "s,\(.*\)/\(.*\)\.m,./gethelp \2 < & | sed 's/^ *@/@/'," | \ |
|
21 /bin/sh |
|
22 else |
|
23 echo "gethelp program seems to be missing!" 1>&2 |
|
24 exit 1 |
|
25 fi |