diff options
author | Luke Shumaker <lukeshu@parabola.nu> | 2017-02-15 14:42:06 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@parabola.nu> | 2017-05-12 19:42:31 -0400 |
commit | c7cc926667f42d30f25110f8a0f2d0529c1007b5 (patch) | |
tree | 2315e2b0dd5347673e8d3a00ee625e1a61ee1414 /lddd.in | |
parent | 68cba262451d0d2f2bbfcb868b00fb80588cead7 (diff) | |
download | devtools32-c7cc926667f42d30f25110f8a0f2d0529c1007b5.tar.xz |
checkpkg, find-libdeps, finddeps, lddd: Use libremessages to add help text.
Diffstat (limited to 'lddd.in')
-rw-r--r-- | lddd.in | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -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}:" |