summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin/tlpkg-by-size
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-06-23 17:26:40 +0000
committerKarl Berry <karl@freefriends.org>2008-06-23 17:26:40 +0000
commit9965e48a9a77e9f40f6b5ff16bbcfdce39ab5701 (patch)
tree685a848f6e47e6ab057ab9ffdc1fe4b9d214d916 /Master/tlpkg/bin/tlpkg-by-size
parent25effc0f11568a43788afd06d21f787a226d0155 (diff)
quick and dirty package size computation; cbfonts wins
git-svn-id: svn://tug.org/texlive/trunk@8953 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/bin/tlpkg-by-size')
-rwxr-xr-xMaster/tlpkg/bin/tlpkg-by-size12
1 files changed, 12 insertions, 0 deletions
diff --git a/Master/tlpkg/bin/tlpkg-by-size b/Master/tlpkg/bin/tlpkg-by-size
new file mode 100755
index 00000000000..89d43c45c2e
--- /dev/null
+++ b/Master/tlpkg/bin/tlpkg-by-size
@@ -0,0 +1,12 @@
+#!/bin/sh
+# $Id$
+# If it ever matters, we can do this right by reading tlpdb.
+
+test $# -eq 0 && set - /home/ftp/texlive/tlnet/tldev/tlpkg
+cd "$1" || exit 1
+for pkgtar in `ls *.tar.lzma | egrep -v '\..*\.tar\.lzma$'`; do
+ pkg=`echo $pkgtar | sed 's/\.tar\.lzma$//'`
+ size=`cat $pkg.*tar.lzma | wc -c`
+ size=`expr $size / 1024`
+ printf "%6d %s\n" $size "$pkg"
+done | sort -nr