blob: 3712c747323bebed74dc80455780cc94270334d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
# $Id$
# Public domain. Originally written 2008, Karl Berry.
# If it ever matters, we can do this right by reading tlpdb.
test $# -eq 0 && set - /home/ftp/texlive/tlnet/archive
cd "$1" || exit 1
for pkgtar in `ls *.tar.xz | egrep -v '\..*\.tar\.xz$'`; do
pkg=`echo $pkgtar | sed 's/\.tar\.xz$//'`
#size=`cat $pkg.*tar.xz | wc -c` # includes binaries
#size=`cat $pkg.tar.xz $pkg.doc.tar.xz $pkg.source.tar.xz 2>/dev/null | wc -c`
size=`expr $size / 1024`
printf "%6d %s\n" $size "$pkg"
done | sort -nr | tee /tmp/tlpsz
|