Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jan 2016 22:42:13 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r294356 - head/tools/build
Message-ID:  <201601192242.u0JMgDEi064757@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Tue Jan 19 22:42:13 2016
New Revision: 294356
URL: https://svnweb.freebsd.org/changeset/base/294356

Log:
  Add some documentation.
  
  Sponsored by:	EMC / Isilon Storage Division

Modified:
  head/tools/build/check-links.sh

Modified: head/tools/build/check-links.sh
==============================================================================
--- head/tools/build/check-links.sh	Tue Jan 19 22:42:10 2016	(r294355)
+++ head/tools/build/check-links.sh	Tue Jan 19 22:42:13 2016	(r294356)
@@ -18,6 +18,15 @@ libkey() {
 	return 0
 }
 
+usage() {
+	cat <<-EOF
+	usage: $0 [-Uv] file
+	       -U:       Skip looking for unresolved symbols.
+	       -v:       Show which library each symbol is resolved to.
+	EOF
+	exit 0
+}
+
 ret=0
 CHECK_UNRESOLVED=1
 VERBOSE_RESOLVED=0
@@ -25,6 +34,7 @@ while getopts "Uv" flag; do
 	case "${flag}" in
 		U) CHECK_UNRESOLVED=0 ;;
 		v) VERBOSE_RESOLVED=1 ;;
+		*) usage ;;
 	esac
 done
 shift $((OPTIND-1))



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601192242.u0JMgDEi064757>