File: popcon2include.sh

package info (click to toggle)
debpartial 0%2B20020130
  • links: PTS
  • area: main
  • in suites: woody
  • size: 92 kB
  • ctags: 53
  • sloc: ruby: 860; sh: 136; makefile: 36
file content (8 lines) | stat: -rwxr-xr-x 405 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
#!/bin/sh
#
# outputs packge lists for --include-from from popularity-contest's result
# at http://people.debian.org/~apenwarr/popcon/all-popcon-results.txt.gz

POPCONDB=http://people.debian.org/~apenwarr/popcon/all-popcon-results.txt.gz

wget --output-document - $POPCONDB 2> /dev/null | zcat | ruby -ne '/(\S+)\s+(\d+)\s+\d+\s+(\d+)/ =~ $_; puts "#{$2.to_i + $3.to_i} #{$1}"' | sort -nr | cut -d' ' -f2