From 9965e48a9a77e9f40f6b5ff16bbcfdce39ab5701 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 23 Jun 2008 17:26:40 +0000 Subject: quick and dirty package size computation; cbfonts wins git-svn-id: svn://tug.org/texlive/trunk@8953 c570f23f-e606-0410-a88d-b1316a301751 --- Master/tlpkg/bin/tlpkg-by-size | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 Master/tlpkg/bin/tlpkg-by-size (limited to 'Master/tlpkg/bin/tlpkg-by-size') 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 -- cgit v1.2.3