summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Lowe <richlowe@richlowe.net>2018-01-24 20:15:28 +0000
committerRichard Lowe <richlowe@richlowe.net>2018-01-27 21:42:19 +0000
commit4ed1382ba00606e1de9b09a46440fff341db026f (patch)
tree598bb00eb26185538b4a35ed7712fa814efa3045
parent498924fdb0b10437ef130a81beee94e710d55a5b (diff)
downloadillumos-joyent-4ed1382ba00606e1de9b09a46440fff341db026f.tar.gz
8992 checkproto is useless and can be deleted
Reviewed by: Toomas Soome <tsoome@me.com> Reviewed by: Peter Tribble <peter.tribble@gmail.com> Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk> Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r--usr/src/pkg/manifests/developer-build-onbld.mf1
-rw-r--r--usr/src/tools/README.tools5
-rw-r--r--usr/src/tools/scripts/Makefile1
-rw-r--r--usr/src/tools/scripts/checkproto.sh88
4 files changed, 0 insertions, 95 deletions
diff --git a/usr/src/pkg/manifests/developer-build-onbld.mf b/usr/src/pkg/manifests/developer-build-onbld.mf
index 4aa075aaf9..e313809960 100644
--- a/usr/src/pkg/manifests/developer-build-onbld.mf
+++ b/usr/src/pkg/manifests/developer-build-onbld.mf
@@ -95,7 +95,6 @@ file path=opt/onbld/bin/build_cscope mode=0555
file path=opt/onbld/bin/cddlchk mode=0555
file path=opt/onbld/bin/check_rtime mode=0555
file path=opt/onbld/bin/checkpaths mode=0555
-file path=opt/onbld/bin/checkproto mode=0555
file path=opt/onbld/bin/copyrightchk mode=0555
file path=opt/onbld/bin/cstyle mode=0555
file path=opt/onbld/bin/elfcmp mode=0555
diff --git a/usr/src/tools/README.tools b/usr/src/tools/README.tools
index fe7f09a5f5..b8244addd6 100644
--- a/usr/src/tools/README.tools
+++ b/usr/src/tools/README.tools
@@ -92,11 +92,6 @@ check_rtime
entries, which help detect changes in software dependencies and makes
sure objects don't have any strange runpaths like /opt/SUNWspro/lib.
-checkproto
- Runs protocmp and protolist on a workspace (or uses the environment
- variable CODEMGR_WS to determine the workspace). Checks the proto area
- against the packages.
-
codereview
Given two filenames, creates a postscript file with the file
differences highlighted.
diff --git a/usr/src/tools/scripts/Makefile b/usr/src/tools/scripts/Makefile
index 935ebcf80c..fe847412e2 100644
--- a/usr/src/tools/scripts/Makefile
+++ b/usr/src/tools/scripts/Makefile
@@ -31,7 +31,6 @@ SHFILES= \
build_cscope \
bringovercheck \
checkpaths \
- checkproto \
cstyle \
elfcmp \
flg.flp \
diff --git a/usr/src/tools/scripts/checkproto.sh b/usr/src/tools/scripts/checkproto.sh
deleted file mode 100644
index df8f14764e..0000000000
--- a/usr/src/tools/scripts/checkproto.sh
+++ /dev/null
@@ -1,88 +0,0 @@
-#!/bin/ksh -e
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
-#
-MACH=`uname -p`
-PLIST=/tmp/protolist.$$
-
-usage() {
- echo "usage: $0 <workspace>"
- exit 1
-}
-
-OPTIND=1
-while getopts X flag
-do
- case $flag in
- *) usage
- ;;
- esac
-done
-
-shift `expr $OPTIND - 1`
-
-if [ $# = 0 -a "${CODEMGR_WS}" != "" ]; then
- WS=${CODEMGR_WS}
-elif [ $# -ne 1 ]; then
- usage
-else
- WS=$1
-fi
-
-
-GUFLAG="-gu"
-if [ "${NIGHTLY_OPTIONS%o*}" != "$NIGHTLY_OPTIONS" ]; then
- GUFLAG=
-fi
-
-if [ ! -d ${WS} ]; then
- echo "${WS} is not a workspace"
- exit 1
-fi
-
-if [ -z "${SRC}" ]; then
- SRC=${WS}/usr/src
-fi
-
-PROTO=${WS}/proto/root_${MACH}
-
-rm -f $PLIST
-
-pkglocns="${SRC}/pkgdefs"
-[ -d ${SRC}/../closed/pkgdefs ] && pkglocns="$pkglocns ${SRC}/../closed/pkgdefs"
-
-exceptions=""
-pkgdefs=""
-for p in $pkglocns; do
- efile="$p/etc/exception_list_${MACH}"
- [ -f $efile ] && exceptions="$exceptions -e $efile"
- pkgdefs="$pkgdefs -d $p"
-done
-
-protolist ${PROTO} > $PLIST
-protocmp ${GUFLAG} $exceptions $pkgdefs ${PLIST}
-
-rm -f $PLIST