# usage: brfsyscheck [appxpath]
# 
# brfsyscheck - this script will run brfcheck for all source and database
#               files under the specified APPX root directory or for the
#               current APPXPATH if none is specified.
#
# NOTE: to execute this script, appx and brfcheckall must be accessible from
#       your PATH environment variable.
#

if [ $# = 0 ]
then
    path=$APPXPATH
else
    path=$1
fi

for ap in $path/??/???/Data
do
    echo brfsyscheck is checking: $ap
    for fi in $ap/*.dat
    do
      echo verifying: $fi
      appx -v=$fi
    done
done

for db in $path/???/???/Data
do
    echo brfsyscheck is checking: $db
    for fi in $db/*.dat
    do
      echo verifying: $fi
      appx -v=$fi
    done
done
#
#
# Modification History:
#
# 12/08/93   MJV   Modified to produce a message showing what is currently
#                  being checked (ECR 1967).
# 12/28/93   MJV   Further modified to replace the 'brfcheckall $ap' line
#                  with a loop performing appx -v for each file within the
#                  $ap directory (ECR 1967 as amended by PAT).
# 12/28/93   MJV   Corrected typo in previous fix.
