Skip to content

Commit

Permalink
update setup to install man(5) pages in the man5 directory
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyBen committed Sep 4, 2023
1 parent 49c1d6e commit 3e1ba80
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions setup
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,15 @@ copy_executable() {
}

copy_man() {
if [[ ! -d "/usr/local/share/man/man1/" ]]; then return; fi

for file in "$1"/*.[1-8]; do
sudo_copy "$file" "/usr/local/share/man/man1/"
section="${file##*.}"
target_dir="/usr/local/share/man/man$section/"

if [[ ! -d "$target_dir" ]]; then
$sudo mkdir -p "$target_dir"
fi

sudo_copy "$file" "$target_dir"
done

if command_exist makewhatis; then
Expand Down

0 comments on commit 3e1ba80

Please sign in to comment.