home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / share / doc / popularity-contest / examples / README.examples < prev   
Encoding:
Text File  |  2005-07-02  |  1.4 KB  |  34 lines

  1.  
  2. This directory contains some scripts used to post-process popularity-contest
  3. entries.  You should have a lot of submissions from different users (at
  4. least 100 of them, if possible) for these results to be valid.
  5.  
  6. To collect results, use procmail or some other mail alias to e-mail
  7. submissions to a file called, say, new-popcon-entries.
  8.  
  9. You should run popcon-process.sh once a day, or so.  It calls prepop.pl to
  10. split the mailbox file into a directory (popcon-entries) with one file per
  11. submission, and only one submission per participant.  (Since each
  12. participant makes a submission only once per day, it's very important to
  13. remove duplicates.)
  14.  
  15. HINT: if you have an account on popcon.debian.org, you can find a pre-processed
  16. popcon-entries directory in /org/popcon.debian.org/popcon-mail.  Feel free to
  17. use these files to generate your own statistics.
  18.  
  19. Now you can do, for example:
  20.  
  21.     cat popcon-entries/*/* | popanal.py
  22.     
  23. which creates a file named results.  Output lines look like this:
  24.  
  25.    <name> <vote> <old> <recent-ctime> <no-files>
  26.    
  27. <name> is the package name;
  28. <vote> is the number of people who use this package regularly;
  29. <old> is the number of people who installed, but don't use this package
  30.     regularly;
  31. <recent-ctime> is the number of people who upgraded this package recently;
  32. <no-files> is the number of people whose entry didn't contain enough
  33.     information (atime and ctime were 0).
  34.