[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: More problems



On Thu, Jul 19, 2001 at 08:51:03AM -0500, Steve Langasek wrote:
> The changelog is used for tracking all of the changes made to the source
> package over the course of development.  Since this is the Debian changelog
> rather than an upstream changelog, the majority of changes noted are specific
> to the shared debian directory, of which there is precisely one for any set of
> binary packages that are built from a single source package.

Because of this,

  #!/bin/sh
  docs=/usr/share/doc
  for file in changelog.Debian.gz copyright
  do
    uniques=$( find $docs -name $file \
      | xargs md5sum | cut -d' ' -f1 | sort -u | wc -l )
    all=$( find $docs -name $file | wc -l )
    dupct=$( expr 100 - 100 \* $uniques / $all ) 
    printf "%-20s %4d files found, %4d unique, %3d%% duplicate\n" \
            $file: $all        $uniques     $dupct
  done
  
run on a few systems here, gives an average of 20% duplicate copyright
and changelog.Debian.gz files.  Slightly more duplicate copyright files.
 
Cheers,


Joost



Reply to: