Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lddd.in
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2017-02-15 14:03:56 -0500
committerLuke Shumaker <lukeshu@parabola.nu>2017-02-15 14:03:56 -0500
commit070092d2492c6d21f42d2bb8d47bfd5e4a4ecfa5 (patch)
tree4e0d6d8cba3ade14d39a3acc910c3371aff78afe /lddd.in
parentaa11acaf52dfd101cb6fe6f7137d2cbd5c8e0d9b (diff)
Apply patches from libretools.
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}:"