-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathautomakedoc.in
More file actions
executable file
·35 lines (25 loc) · 920 Bytes
/
automakedoc.in
File metadata and controls
executable file
·35 lines (25 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#! @SHELL@
cat << \EOD
PGPLOT GRAPHICS SUBROUTINE LIBRARY Version 5.1
PGPLOT is a Fortran subroutine package for drawing graphs on a variety
of display devices. For more details, see the manual ``PGPLOT Graphics
Subroutine Library'' available from T. J. Pearson
(tjp@astro.caltech.edu).
INDEX OF ROUTINES
EOD
# Extract documentation from pgplot source code: output index of routines
@AWK@ '
/^C\*/ { print substr($0, 3, 500)}
' $*
# Extract documentation from pgplot source code: output ASCII text
@AWK@ '
/^C\*/ { print ""; print "";
print "------------------------------------------------------------------------";
print "Module: " substr($0, 3, 500);
print "------------------------------------------------------------------------"; print "";
}
/^C\+/ { echo = 1; getline }
/^C--/ { echo = 0}
echo == 1 && /^C/ {print substr($0, 3, 500) }
echo == 1 && !/^C/ { print }
' $*