Cdiff checkpaths.sh
*** /tmp/checkpaths-open/webrev/usr/src/tools/scripts/checkpaths.sh-    Mon May 22 20:51:55 2006
--- checkpaths.sh       Mon May 22 20:50:48 2006

*** 68,79 **** echo "$ROOT has unknown architecture." >&2 exit 1 ;; esac if [ -d $ROOT ]; then ! validate_paths '-s/\s*'$arch'$//' -e '^opt/onbld' -b $ROOT \ ! $args $SRC/pkgdefs/etc/exception_list_$arch 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 --- 68,82 ---- echo "$ROOT has unknown architecture." >&2 exit 1 ;; esac if [ -d $ROOT ]; then ! if [ "$CLOSED_IS_PRESENT" = no ]; then ! excl="-e ^usr/include/ike/" ! fi ! validate_paths '-s/\s*'$arch'$//' -e '^opt/onbld' $excl \ ! -b $ROOT $args $SRC/pkgdefs/etc/exception_list_$arch 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
*** 82,99 **** # 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 [ -r $SRC/tools/findunref/exception_list ]; then ! validate_paths -k ISUSED -r -e '^\*' -b $SRC/.. \ $SRC/tools/findunref/exception_list fi # These are straightforward. if [ -d $SRC/xmod ]; then ! validate_paths $SRC/xmod/cry_files ! validate_paths -b $SRC $SRC/xmod/xmod_files fi # Finally, make sure the that (req|inc).flg files are in good shape. validate_flg --- 85,111 ---- # 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 [ -r $SRC/tools/findunref/exception_list ]; then ! if [ "$CLOSED_IS_PRESENT" = no ]; then ! excl="-e ^\./closed" ! fi ! validate_paths -k ISUSED -r -e '^\*' $excl -b $SRC/.. \ $SRC/tools/findunref/exception_list fi # These are straightforward. if [ -d $SRC/xmod ]; then ! if [ "$CLOSED_IS_PRESENT" = no ]; then ! excl="-e ^usr/closed" ! fi ! validate_paths $excl $SRC/xmod/cry_files ! if [ "$CLOSED_IS_PRESENT" = no ]; then ! excl="-e ^../closed" ! fi ! validate_paths $excl -b $SRC $SRC/xmod/xmod_files fi # Finally, make sure the that (req|inc).flg files are in good shape. validate_flg