#! /bin/sh
#
# Copyright by the Board of Trustees of the University of Illinois.
# All rights reserved.
#
# This file is part of HDF5.  The full HDF5 copyright notice, including
# terms governing use, modification, and redistribution, is contained in
# the files COPYING and Copyright.html.  COPYING can be found at the root
# of the source code distribution tree; Copyright.html can be found at the
# root level of an installed copy of the electronic HDF5 document set and
# is linked from the top-level documents page.  It can also be found at
# http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html.  If you do not have
# access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu.
# Check Copyright notice.
# Check that all the files have the proper copyright notice.
# It goes down directories recursively.
# Programmer: Albert Cheng
# Created Data: 2003/07/22
# Modification:
#   Rewrote most of it. Albert Cheng, 2005/10/10.
# Setup
PROGNAME=$0
DIFF="diff"
INITFILE=.h5chkright.ini
EXCEPTIONS=/tmp/h5chkright.except.$$
tmpfile=/tmp/h5chkright_tmp.$$
EXCEPTIONDIRS="-name CVS"   # at least skip CVS directories.
EXTRACTEDFILE=/tmp/h5chkright.extracted.$$
VERBOSE=        # default no
DIRS=.          # default current directory
NFAILEDFILES=0      # Number of failed files found.
NPASSEDFILES=0      # Number of failed files found.
NUMBEGINLINES=60    # Copyright notice should be located within the
            # this number of lines at the beginning of the file.
COPYRIGHTSTR="Copyright by the Board of Trustees of the University of Illinois"
PASSEDLOG=/tmp/h5chkright_passed.$$
SKIPPEDLOG=/tmp/h5chkright_skipped.$$
FAILEDLOG=/tmp/h5chkright_failed.$$
C_COPYRIGHT=/tmp/h5chkright_C.$$    # C style copyright
FTN_COPYRIGHT=/tmp/h5chkright_FTN.$$    # Fortran style copyright
HTM_COPYRIGHT=/tmp/h5chkright_HTM.$$    # HTML style copyright
SH_COPYRIGHT=/tmp/h5chkright_SH.$$  # SHELL style copyright
SH_COPYRIGHT2=/tmp/h5chkright_SH2.$$    # SHELL style copyright, 2nd style.
WINBAT_COPYRIGHT=/tmp/h5chkright_WINBAT.$$  # Windows Batch file Copyright notice