aboutsummaryrefslogtreecommitdiffstats
path: root/packages/cortexa15t2hf-neon-poky-linux-gnueabi/kmod/kmod-doc/latest.pkg_postinst
blob: e89aa5a4179b29181c0228d6f292905c6f836076 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
	# only update manual page index caches when manual files are built and installed
	if false; then
		if test -n "$D"; then
			if true; then
				sed "s:\(\s\)/:\1$D/:g" $D/etc/man_db.conf | PSEUDO_UNLOAD=1 qemu-arm -r 3.2.0  -L $D -E LD_LIBRARY_PATH=$D/usr/lib:$D/lib $D/usr/bin/mandb -C - -u -q $D/usr/share/man
				chown -R root:root $D/usr/share/man
				mkdir -p $D/var/cache/man
				cd $D/usr/share/man
				find . -name index.db | while read index; do
					mkdir -p $D/var/cache/man/$(dirname ${index})
					mv ${index} $D/var/cache/man/${index}
					chown man:man $D/var/cache/man/${index}
				done
				cd -
			else
				$INTERCEPT_DIR/postinst_intercept delay_to_first_boot kmod-doc mlprefix=
			fi
		else
			mandb -q
		fi
	fi