elf.5, ld.so.8: Undeprecate DT_RPATH; explain DT_RPATH vs DT_RUNPATH
[man-pages.git] / scripts / man_show_fixme.sh
blob9c647458dc83c9ec3449de13773ef694a6b8fa05
1 #!/bin/sh
3 # Render man pages with FIXMEs shown as tables
4 # in the rendered page
6 for f in $*; do
7 cat $f | awk '
8 /^\.\\" *FIXME/ {
9 if ($0 ~ /.*FIXME *\..*/) {
10 # FIXMES of the form "FIXME ." are "private" and
11 # ignored by this script
12 } else {
13 sub("FIXME[: ]*", "")
14 if ($0 ~ /^\.\\"[ ]*$/) {
16 # If the FIXME line contains no additional text after
17 # "FIXME", then discard the blank line
19 getline
21 print ""
22 if (fixme == 0) {
23 print ".TS"
24 print ".allbox;"
25 print "lbw52"
26 print "l."
27 print "FIXME"
28 print "T{"
30 fixme = 1
34 $0 !~ /^\.\\"/ && fixme == 1 {
35 fixme = 0
36 print "T}"
37 print ".TE"
38 print ""
41 fixme == 1 {
42 sub("^\\...[ ]", "")
43 sub("^\\...", "")
44 gsub("'"'"'", "\\(aq")
45 if ($0 ~ /^[ ][ ]*.*/) {
46 print ".br"
47 sub("^[ ]*", " ")
52 print $0
54 ' | tee "/tmp/$(basename $f).src" | man --nh --nj -l /dev/stdin
55 done