diff options
author | Luke Shumaker <lukeshu@parabola.nu> | 2017-02-15 14:42:06 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@parabola.nu> | 2017-09-13 16:44:20 -0400 |
commit | c190fb59fa14af1baf7313b67f37202951fabf64 (patch) | |
tree | c2427b6f3a59f9f52cb8add34253d420caa3d1a8 /lddd.in | |
parent | 332a91b8f623f07c002dedb1da3645903d4c1ab7 (diff) | |
download | devtools32-c190fb59fa14af1baf7313b67f37202951fabf64.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}:" |