Skip to content

Commit

Permalink
Revive man pages
Browse files Browse the repository at this point in the history
  • Loading branch information
haampie committed Dec 14, 2021
1 parent 9b4bcde commit d2f2fc8
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ LIBTREE_DEFINES := -D_FILE_OFFSET_BITS=64

PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
SHAREDIR ?= $(PREFIX)/share

.PHONY: all check install clean

Expand All @@ -27,6 +28,8 @@ check: libtree
install: all
mkdir -p $(DESTDIR)$(BINDIR)
cp libtree $(DESTDIR)$(BINDIR)
mkdir -p $(DESTDIR)$(SHAREDIR)/man1
cp doc/libtree.1 $(DESTDIR)$(SHAREDIR)/man1

clean:
rm -f *.o libtree
46 changes: 46 additions & 0 deletions doc/libtree.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
.\" Process this file with
.\" groff -man -Tascii foo.1
.\"
.TH libtree 1 "2020-04-13" Linux "User Manuals"
.SH NAME
libtree \- print shared object dependencies as a tree
.SH SYNOPSIS
.B libtree
[
.I option
]... [--] [
.I file
]...
.SH DESCRIPTION
.B libtree
prints the shared libraries required by each program or shared library on the command line as a tree. By default certain common system libraries are hidden to prune the tree.
.SH OPTIONS
.IP "-h, --help"
Print usage
.IP "--version"
Print version info
.IP "-p, --path"
Show the path of libraries instead of their
.B soname
.IP "-v"
Show libraries skipped by default
.IP "-vv"
Show dependencies of libraries skipped by default
.IP "-vvv"
Show dependencies of already encountered libraries
.IP "--ldconf arg"
Path to custom
.I ld.so.conf
or
.I ld-elf.so.conf
file
.IP "--"
All arguments after '--' are interpreted as paths, not flags.
.SH ENVIRONMENT
.B LD_LIBRARY_PATH
can be used to provide additional search paths.
.SH AUTHOR
Harmen Stoppels <[email protected]>
.SH "SEE ALSO"
.BR ldd (1)

0 comments on commit d2f2fc8

Please sign in to comment.