File: makedoc

package info (click to toggle)
pgplot5 5.2.2-19.8
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid
  • size: 7,192 kB
  • sloc: fortran: 39,795; ansic: 22,554; objc: 1,534; sh: 1,298; makefile: 269; pascal: 233; perl: 209; tcl: 190; awk: 51; csh: 25
file content (35 lines) | stat: -rwxr-xr-x 915 bytes parent folder | download | duplicates (16)
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
35
#!/bin/sh
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 }
' $*