Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@richlowe
Created April 27, 2019 03:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richlowe/effcc1ec321bab6123d88640e56115e5 to your computer and use it in GitHub Desktop.
Save richlowe/effcc1ec321bab6123d88640e56115e5 to your computer and use it in GitHub Desktop.
#!/bin/ksh
catman -M proto/root_i386/usr/share/man
for elt in $(sed -e 's/ - .*//' proto/root_i386/usr/share/man/whatis | tr ',' '\n' | sed -e 's/(/./' -e 's/)//'); do
sect=${elt##*.}
if [[ ! -e proto/root_i386/usr/share/man/man${sect}/${elt} ]]; then
print -u2 "Missing: $elt"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment