aboutsummaryrefslogtreecommitdiffstats
path: root/packages/cortexa57-poky-linux/libpsl/libpsl-doc/latest.pkg_postinst
diff options
context:
space:
mode:
Diffstat (limited to 'packages/cortexa57-poky-linux/libpsl/libpsl-doc/latest.pkg_postinst')
-rw-r--r--packages/cortexa57-poky-linux/libpsl/libpsl-doc/latest.pkg_postinst23
1 files changed, 23 insertions, 0 deletions
diff --git a/packages/cortexa57-poky-linux/libpsl/libpsl-doc/latest.pkg_postinst b/packages/cortexa57-poky-linux/libpsl/libpsl-doc/latest.pkg_postinst
new file mode 100644
index 000000000000..13214e88da49
--- /dev/null
+++ b/packages/cortexa57-poky-linux/libpsl/libpsl-doc/latest.pkg_postinst
@@ -0,0 +1,23 @@
+set -e
+ # 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-aarch64 -r 3.14 -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 libpsl-doc mlprefix=
+ fi
+ else
+ mandb -q
+ fi
+ fi