summaryrefslogtreecommitdiff
path: root/lddd.in
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2017-02-15 14:42:06 -0500
committerLuke Shumaker <lukeshu@parabola.nu>2017-04-20 00:23:50 -0400
commit602a5592db89426e15cf394109c7637be108ee32 (patch)
treeee26f24129bd2b363790f9feccae74fd7016c0f0 /lddd.in
parent24b7799d315d10d339c99ef05e438b2dfd1421c6 (diff)
downloaddevtools32-602a5592db89426e15cf394109c7637be108ee32.tar.xz
checkpkg, find-libdeps, finddeps, lddd: Use libremessages to add help text.
Diffstat (limited to 'lddd.in')
-rw-r--r--lddd.in18
1 files changed, 17 insertions, 1 deletions
diff --git a/lddd.in b/lddd.in
index 908923b..3f606de 100644
--- a/lddd.in
+++ b/lddd.in
@@ -4,7 +4,23 @@
#
# License: Unspecified
-m4_include(lib/common.sh)
+. "$(librelib messages)"
+
+usage() {
+ print "Usage: %s [-h]" "${0##*/}"
+ print "Find broken library links on your machine."
+ echo
+ prose 'Scans $PATH and library directories for ELF files with
+ references to missing shared libraries.'
+}
+
+if [[ $1 = '-h' ]]; then
+ usage
+ exit 0
+elif [[ $# -gt 0 ]]; then
+ usage >&2
+ exit 1
+fi
ifs=$IFS
IFS="${IFS}:"