Just a quick note: I believe echo does not read from stdin; attempting to pipe to echo produces undefined results (e.g., on many BSD-based systems, it used to reset your pgroup!). Note that the revised script avoids this problem.
I believe the intent of the script is to locate a directory tree below $CHROOTS (previously defined), and compare contents with those in the /usr directory. If the $CHROOTS-based file is newer than the root version, the $CHROOTS-based file is copied to root. The script might be, for example, a way to update a new installation of Linux with customized files from a previous installation.
Just my $0.02 within $0.05 rounding error ... (

)