File: mkmanpages

package info (click to toggle)
zlibc 0.9k-4.3
  • links: PTS
  • area: main
  • in suites: buster, sid, stretch
  • size: 624 kB
  • ctags: 461
  • sloc: sh: 3,195; ansic: 3,077; csh: 128; makefile: 60; sed: 4
file content (38 lines) | stat: -rwxr-xr-x 827 bytes parent folder | download | duplicates (5)
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
36
37
38
#!/bin/sh

src=`dirname $0`

# zlibc.3
(
cd $src
echo \'\\\" t
echo .TH uncompress.so 3 "27mar1999" "ZLIBC" "ZLIBC"
egrep -v '^\\input ' < $src/zlibc.texi |
	sed \
		-e '/\\input texinfo/d' \
		-e '/^@c zlibc\.3skip/,/^@c zlibc\.3end-skip/d' \
		-e '/^@c MANskip/,/^@c MANend-skip/d' \
		-e 's/^@c MAN/@MAN/' |
	texi2roff -mm |
	sed -f strip-pp.sed 
) > zlibc.3

# zlibc.5
(
cd $src
echo \'\\\" t
echo .TH zlibc.conf 5 "27jun99" ZLIBC
sed \
	-e '/\\input texinfo/d' \
	-e '/^@c zlibc-conf\.5skip/,/^@c zlibc-conf\.5end-skip/d' \
	-e '/^@c MANskip/,/^@c MANend-skip/d' \
	-e 's/^@c MAN/@MAN/' \
	-e '/@chapter/d' \
	-e '/@section/d' \
	-e 's/^@subsection/@chapter/' \
	-e 's/^@subs/@s/' \
	-e 's/^@subs/@s/' \
	-e 's/^@unnumberedsubsubsec/@subsection/' < $src/zlibc.texi |
	texi2roff -mm |
	sed -f strip-pp.sed
) > zlibc.conf.5