From d2f2fc8a56ae4d0c67bf682af08f0582350f7fc5 Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Tue, 14 Dec 2021 12:43:36 +0100 Subject: [PATCH] Revive man pages --- Makefile | 3 +++ doc/libtree.1 | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 doc/libtree.1 diff --git a/Makefile b/Makefile index 6efcdeb..ec896f5 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -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 diff --git a/doc/libtree.1 b/doc/libtree.1 new file mode 100644 index 0000000..30a0f06 --- /dev/null +++ b/doc/libtree.1 @@ -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 +.SH "SEE ALSO" +.BR ldd (1) +