From ada82c54e5948ae6353d7024151dcc429665a070 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 21 Mar 2014 00:36:23 -0400 Subject: Add usage text to the commands in src/devtools --- src/devtools/lddd.patch | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/devtools/lddd.patch (limited to 'src/devtools/lddd.patch') 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}:" -- cgit v1.2.3-54-g00ecf