diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-03-21 00:36:23 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-03-21 00:36:23 -0400 |
commit | ada82c54e5948ae6353d7024151dcc429665a070 (patch) | |
tree | b0bcbf4a1f56b781824d14457b6b7837d9eed367 /src/devtools/lddd.patch | |
parent | d17d1d82349f7f4cb60574f7d9c2f786eec3cc93 (diff) |
Add usage text to the commands in src/devtools
Diffstat (limited to 'src/devtools/lddd.patch')
-rw-r--r-- | src/devtools/lddd.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/devtools/lddd.patch b/src/devtools/lddd.patch new file mode 100644 index 0000000..7ae1679 --- /dev/null +++ b/src/devtools/lddd.patch @@ -0,0 +1,27 @@ +--- lddd.in 2014-03-20 15:55:50.154579704 -0400 ++++ lddd 2014-03-21 00:35:07.167279204 -0400 +@@ -3,7 +3,23 @@ + # lddd - find broken library links on your machine + # + +-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}:" |