Sdiff checkpaths.sh


53 # and unbuilt workspaces (which contain no proto areas). 54 if [ "$b_flg" = y ]; then 55 rootlist= 56 elif [ $# -gt 0 ]; then 57 rootlist=$* 58 else 59 rootlist="$CODEMGR_WS/proto/root_sparc $CODEMGR_WS/proto/root_i386" 60 fi 61 62 for ROOT in $rootlist 63 do 64 case "$ROOT" in 65 *sparc) arch=sparc;; 66 *i386) arch=i386;; 67 *) 68 echo "$ROOT has unknown architecture." >&2 69 exit 1 70 ;; 71 esac 72 if [ -d $ROOT ]; then 73 validate_paths '-s/\s*'$arch'$//' -e '^opt/onbld' -b $ROOT \ 74 $args $SRC/pkgdefs/etc/exception_list_$arch 75 fi 76 done 77 78 # Two entries in the findunref exception_list deal with things created 79 # by nightly. Otherwise, this test could be run on an unmodifed (and 80 # unbuilt) workspace. We handle this by flagging the one that is 81 # present only on a built workspace (./*.out) and the one that's 82 # present only after a run of findunref (./*.ref) with ISUSED, and 83 # disabling all checks of them. The assumption is that the entries 84 # marked with ISUSED are always known to be good, thus the Latin quote 85 # at the top of the file. 86 if [ -r $SRC/tools/findunref/exception_list ]; then 87 validate_paths -k ISUSED -r -e '^\*' -b $SRC/.. \ 88 $SRC/tools/findunref/exception_list 89 fi 90 91 # These are straightforward. 92 if [ -d $SRC/xmod ]; then 93 validate_paths $SRC/xmod/cry_files 94 validate_paths -b $SRC $SRC/xmod/xmod_files 95 fi 96 97 # Finally, make sure the that (req|inc).flg files are in good shape. 98 validate_flg 99 100 exit 0


53 # and unbuilt workspaces (which contain no proto areas). 54 if [ "$b_flg" = y ]; then 55 rootlist= 56 elif [ $# -gt 0 ]; then 57 rootlist=$* 58 else 59 rootlist="$CODEMGR_WS/proto/root_sparc $CODEMGR_WS/proto/root_i386" 60 fi 61 62 for ROOT in $rootlist 63 do 64 case "$ROOT" in 65 *sparc) arch=sparc;; 66 *i386) arch=i386;; 67 *) 68 echo "$ROOT has unknown architecture." >&2 69 exit 1 70 ;; 71 esac 72 if [ -d $ROOT ]; then 73 if [ "$CLOSED_IS_PRESENT" = no ]; then 74 excl="-e ^usr/include/ike/" 75 fi 76 validate_paths '-s/\s*'$arch'$//' -e '^opt/onbld' $excl \ 77 -b $ROOT $args $SRC/pkgdefs/etc/exception_list_$arch 78 fi 79 done 80 81 # Two entries in the findunref exception_list deal with things created 82 # by nightly. Otherwise, this test could be run on an unmodifed (and 83 # unbuilt) workspace. We handle this by flagging the one that is 84 # present only on a built workspace (./*.out) and the one that's 85 # present only after a run of findunref (./*.ref) with ISUSED, and 86 # disabling all checks of them. The assumption is that the entries 87 # marked with ISUSED are always known to be good, thus the Latin quote 88 # at the top of the file. 89 if [ -r $SRC/tools/findunref/exception_list ]; then 90 if [ "$CLOSED_IS_PRESENT" = no ]; then 91 excl="-e ^\./closed" 92 fi 93 validate_paths -k ISUSED -r -e '^\*' $excl -b $SRC/.. \ 94 $SRC/tools/findunref/exception_list 95 fi 96 97 # These are straightforward. 98 if [ -d $SRC/xmod ]; then 99 if [ "$CLOSED_IS_PRESENT" = no ]; then 100 excl="-e ^usr/closed" 101 fi 102 validate_paths $excl $SRC/xmod/cry_files 103 if [ "$CLOSED_IS_PRESENT" = no ]; then 104 excl="-e ^../closed" 105 fi 106 validate_paths $excl -b $SRC $SRC/xmod/xmod_files 107 fi 108 109 # Finally, make sure the that (req|inc).flg files are in good shape. 110 validate_flg 111 112 exit 0