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-02-19 14:21:30 -0500
commitc1063cd6752afe778d44f6f88326d95f01300377 (patch)
tree2557fc4776df8cf18eb29505810c3ca5db337f0d /lddd.in
parentab2987efab9d1f62be582f5dce08c9906d46b3c4 (diff)
downloaddevtools32-c1063cd6752afe778d44f6f88326d95f01300377.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 f01ebf9..09e0d07 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}:"