#! /bin/sh
for i in `find etc root usr -type f -print`
do NEW=`echo $i |grep "\.new"`
  if [ "${NEW}x" = x ]; then
    COMP=$i
  else
    COMP=`echo $i | sed -e 's/\.new$//'`
  fi
  diff /${COMP} $i > /tmp/dif$$
  if [ $? -ne 0 ]; then
    echo diff /${COMP} ${i}:
    cat /tmp/dif$$
    echo -n "Update? "
    read RESP
    if [ $RESP = "y" -o $RESP = "Y" ]; then
      if [ -f /${COMP} ]; then
        mv /${COMP} /${COMP}.old
      fi
      cp -p $i /${COMP}
    fi
  fi
  rm /tmp/dif$$
done
