File: makedoc

package info (click to toggle)
pgplot5 5.2.2-19%2Bdeb8u1
  • links: PTS
  • area: non-free
  • in suites: jessie
  • size: 7,056 kB
  • ctags: 6,555
  • sloc: fortran: 39,792; ansic: 22,549; objc: 1,534; sh: 1,306; makefile: 386; perl: 234; pascal: 233; 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 }
' $*