Print this page
first pass


  99                 done
 100         fi
 101 done
 102 
 103 # Two entries in the findunref exception_list deal with things created
 104 # by nightly.  Otherwise, this test could be run on an unmodifed (and
 105 # unbuilt) workspace.  We handle this by flagging the one that is
 106 # present only on a built workspace (./*.out) and the one that's
 107 # present only after a run of findunref (./*.ref) with ISUSED, and
 108 # disabling all checks of them.  The assumption is that the entries
 109 # marked with ISUSED are always known to be good, thus the Latin quote
 110 # at the top of the file.
 111 #
 112 # The exception_list is generated from whichever input files are appropriate
 113 # for this workspace, so checking it obviates the need to check the inputs.
 114 
 115 if [ -r $SRC/tools/findunref/exception_list ]; then
 116         validate_paths -k ISUSED -r -e '^\*' $SRC/tools/findunref/exception_list
 117 fi
 118 
 119 # These are straightforward.
 120 if [ -d $SRC/xmod ]; then
 121         # If the closed source is not present, then don't validate it.
 122         if [ "$CLOSED_IS_PRESENT" = no ]; then
 123                 excl_cry="-e ^usr/closed"
 124                 excl_xmod="-e ^../closed"
 125         fi
 126         validate_paths $excl_cry $SRC/xmod/cry_files
 127         validate_paths $excl_xmod -b $SRC $SRC/xmod/xmod_files
 128 fi
 129 
 130 if [ -f $SRC/tools/opensolaris/license-list ]; then
 131         excl=
 132         if [ "$CLOSED_IS_PRESENT" = no ]; then
 133                 excl="-e ^usr/closed"
 134         fi
 135         sed -e 's/$/.descrip/' < $SRC/tools/opensolaris/license-list | \
 136                 validate_paths -n SRC/tools/opensolaris/license-list $excl
 137 fi
 138 
 139 # Finally, make sure the that (req|inc).flg files are in good shape.
 140 # If SCCS files are not expected to be present, though, then don't
 141 # check them.
 142 if [ ! -d "$CODEMGR_WS/Codemgr_wsdata" ]; then
 143         f_flg='-f'
 144 fi
 145 # If the closed source is not present, then don't validate it.
 146 if [ "$CLOSED_IS_PRESENT" = no ]; then
 147         excl="-e ^usr/closed/"
 148 fi
 149 


  99                 done
 100         fi
 101 done
 102 
 103 # Two entries in the findunref exception_list deal with things created
 104 # by nightly.  Otherwise, this test could be run on an unmodifed (and
 105 # unbuilt) workspace.  We handle this by flagging the one that is
 106 # present only on a built workspace (./*.out) and the one that's
 107 # present only after a run of findunref (./*.ref) with ISUSED, and
 108 # disabling all checks of them.  The assumption is that the entries
 109 # marked with ISUSED are always known to be good, thus the Latin quote
 110 # at the top of the file.
 111 #
 112 # The exception_list is generated from whichever input files are appropriate
 113 # for this workspace, so checking it obviates the need to check the inputs.
 114 
 115 if [ -r $SRC/tools/findunref/exception_list ]; then
 116         validate_paths -k ISUSED -r -e '^\*' $SRC/tools/findunref/exception_list
 117 fi
 118 











 119 if [ -f $SRC/tools/opensolaris/license-list ]; then
 120         excl=
 121         if [ "$CLOSED_IS_PRESENT" = no ]; then
 122                 excl="-e ^usr/closed"
 123         fi
 124         sed -e 's/$/.descrip/' < $SRC/tools/opensolaris/license-list | \
 125                 validate_paths -n SRC/tools/opensolaris/license-list $excl
 126 fi
 127 
 128 # Finally, make sure the that (req|inc).flg files are in good shape.
 129 # If SCCS files are not expected to be present, though, then don't
 130 # check them.
 131 if [ ! -d "$CODEMGR_WS/Codemgr_wsdata" ]; then
 132         f_flg='-f'
 133 fi
 134 # If the closed source is not present, then don't validate it.
 135 if [ "$CLOSED_IS_PRESENT" = no ]; then
 136         excl="-e ^usr/closed/"
 137 fi
 138