summaryrefslogtreecommitdiff
path: root/src/devtools/lddd.patch
blob: 7ae16799b4b3498a583866a0ed0f9deece440065 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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}:"