File: install-manpages

package info (click to toggle)
dwdiff 2.1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 540 kB
  • sloc: ansic: 4,072; sh: 685; makefile: 83; python: 20
file content (37 lines) | stat: -rwxr-xr-x 812 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
#!/bin/sh
# Install manual page

not() {
	if "$@" ; then
		false
	else
		true
	fi
}

for lingua in ${LINGUAS} ; do
	if not [ -f "man/${lingua}/dwdiff.1" ] ; then
		echo "No manual page for dwfiff for lingua ${lingua}"
		continue
	fi

	${INSTALL} -d "${mandir}/${lingua}.UTF-8/man1"
	${INSTALL} -m 644 "man/${lingua}/dwdiff.1" "${mandir}/${lingua}.UTF-8/man1"

	${INSTALL} -d "${mandir}/${lingua}/man1"
	${INSTALL} -m 644 "man/${lingua}/dwdiff.1" "${mandir}/${lingua}/man1"

	if not [ "x$1" = "xyes" ] ; then
		continue
	fi

	if not [ -f "man/${lingua}/dwfilter.1" ] ; then
		echo "No manual page for dwfilter for lingua ${lingua}"
		continue
	fi

	${INSTALL} -m 644 "man/${lingua}/dwfilter.1" "${mandir}/${lingua}.UTF-8/man1"
	${INSTALL} -m 644 "man/${lingua}/dwfilter.1" "${mandir}/${lingua}/man1"
done

exit 0