checkpaths.sh revision f136dc05547d5c8bf0829a1439b3e4caadef85a0
#
# 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
# 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"
# Quis custodiet ipsos custodies?
if [ -z "$SRC" ]; then
fi
echo "$0: must be run from within a workspace."
exit 1
fi
cd $CODEMGR_WS || exit 1
# Use -b to tell this script to ignore derived (built) objects.
if [ "$1" = "-b" ]; then
b_flg=y
fi
# Not currently used; available for temporary workarounds.
args="-k NEVER_CHECK"
# We intentionally don't depend on $MACH here, and thus no $ROOT. If
# a proto area exists, then we use it. This allows this script to be
# run against gates (which should contain both SPARC and x86 proto
# areas), build workspaces (which should contain just one proto area),
# and unbuilt workspaces (which contain no proto areas).
if [ "$b_flg" = y ]; then
elif [ $# -gt 0 ]; then
rootlist=$*
else
fi
# If the closed source is not present, then exclude IKE from validation.
if [ "$CLOSED_IS_PRESENT" = no ]; then
fi
do
*)
echo "$ROOT has unknown architecture." >&2
exit 1
;;
esac
if [ -d $ROOT ]; then
fi
done
# Two entries in the findunref exception_list deal with things created
# by nightly. Otherwise, this test could be run on an unmodifed (and
# unbuilt) workspace. We handle this by flagging the one that is
# present only on a built workspace (./*.out) and the one that's
# present only after a run of findunref (./*.ref) with ISUSED, and
# disabling all checks of them. The assumption is that the entries
# marked with ISUSED are always known to be good, thus the Latin quote
# at the top of the file.
# If the closed source is not present, then don't validate it.
if [ "$CLOSED_IS_PRESENT" = no ]; then
excl="-e ^\./closed"
fi
fi
# These are straightforward.
# If the closed source is not present, then don't validate it.
if [ "$CLOSED_IS_PRESENT" = no ]; then
excl_xmod="-e ^../closed"
fi
fi
# Finally, make sure the that (req|inc).flg files are in good shape.
# If SCCS files are not expected to be present, though, then don't
# check them.
if [ ! -d "$CODEMGR_WS/Codemgr_wsdata" ]; then
f_flg='-f'
fi
# If the closed source is not present, then don't validate it.
if [ "$CLOSED_IS_PRESENT" = no ]; then
fi
exit 0