2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-11-16 11:40:21 -07:00
repo/extra/man-pages/build
Dylan Araps dce9f05156
man-pages: provide man-pages-posix (See #273)
We need man-pages-posix to fill in the gaps where man-pages
provides glibc related information.

This also renames the directories from man[013]p to man[013]
to avoid having to use makewhatis + the mandoc database.
2021-07-12 13:31:50 +03:00

21 lines
432 B
Bash
Executable File

#!/bin/sh -e
#
# The Makefile uses install commands which are incompatible
# with busybox's install implementation (specifically -T).
mkdir -p "$1/usr/share/man"
for i in 0p 1p 3p; do
cp -Rf "posix/man$i" "$1/usr/share/man/man${i%%p}"
done
for i in 2 4 5 7; do
cp -Rf "man$i" "$1/usr/share/man"
done
# Provided by mandoc.
rm -f "$1/usr/share/man/man7/man.7"
# Provided by tzdata.
rm -f "$1/usr/share/man/man5/tzfile.5"