#!/bin/sh of=extras.html.new if [ -e .stamp -a $(echo $(find . -newer .stamp -type f -name '*.log' 2>/dev/null | wc -l)) = "0" ]; then exit; fi echo "List of files and directories that do not match their mtree description" >$of echo "

List of files and directories that do not match their mtree description

" >>$of echo "" >>$of touch .stamp find . -name '*.log' | xargs grep -l '^list of.*file' | sort | sed -e 's/^..//' > .tmp if [ $(echo $(cat .tmp | wc -l)) = 0 ]; then echo "No extra files (yet)" >> $of else set $(cat .tmp) num=$# if [ -s cvsdone ]; then echo "(cvs update finished at: $(cat cvsdone))
" >> $of fi echo "(timestamp of newest log: $(ls -rtTl | grep '\.log$' | tail -1 | awk '{printf("%s %s %s %s\n",$6,$7,$8,$9)}'))

" >> $of echo "" >>$of echo "" >>$of while [ $# -gt 0 ]; do log=$(basename $1 .log) echo -n "" >>$of shift done echo "
LogAff.SizeRepositoryMaintainerPathname
" >>$of echo -n "" >> $of echo -n "" >>$of echo -n $log >>$of echo -n "" >>$of echo -n "" >>$of affected=$(($(grep -cF $log < INDEX) - 1)) if [ $affected != 0 ]; then echo -n $affected >>$of; fi echo -n "" >>$of size=$(/bin/ls -sk $log.log | awk '{print $1}') echo -n "$size KB" >>$of echo -n "" >>$of dir=$(sed -n -e '4p' $log.log | awk '{print $3}' | sed -e 's,^/[^/]*/[^/]*/,,') echo -n "$dir" >>$of echo -n "" >>$of maint=$(sed -n -e '3p' $log.log | awk '{print $3}') maints="$maints $maint" echo -n "$maint" >>$of echo "" >>$of cat $log.log | sed -e '1,/^list of extra files and directories/d' -e '/^list of/,$d' | awk '{print $11}' | sed -E -e 's,^,,' -e 's,(usr/(local|X11R6)),\1,g' -e 's,$,
,' >>$of cat $log.log | sed -e '1,/^list of files present before this port was installed/d' -e '/^list of/,$d' -e 's,^\./,,' | awk '{print $1}' | sed -e 's,^,,' -e 's,$, (missing)
,' >> $of cat $log.log | sed -e '1,/^list of filesystem changes/d' -e '/^ /d' | awk '{print $1}' | sed -e 's,^,,' -e 's,$, (changed)
,' >>$of echo "

" >> $of echo "$num errors
" >> $of fi rm .tmp echo "
" >> $of echo "back to top" >> $of echo "" >>$of mv -f $of extras.html echo $maints | sed -e 's/ /\ /g' | sort -fu > maintainers