summaryrefslogtreecommitdiff
path: root/pcr/pactools/pt-pacsize
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/pactools/pt-pacsize')
-rwxr-xr-xpcr/pactools/pt-pacsize21
1 files changed, 0 insertions, 21 deletions
diff --git a/pcr/pactools/pt-pacsize b/pcr/pactools/pt-pacsize
deleted file mode 100755
index e70a34597..000000000
--- a/pcr/pactools/pt-pacsize
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/bash
-
-##AUTHOR: hads
-##See: http://bbs.archlinux.org/viewtopic.php?t=20971
-
-for i in /var/lib/pacman/local/*; do
- PKG=`echo $i | cut -d '/' -f 6`
- SIZE=`grep -A 1 SIZE $i/desc | tail -1`
- if [ -x /usr/bin/bc ]; then
- if [ $SIZE -gt 1024 ]; then
- if [ $SIZE -gt 1048576 ]; then
- SIZE=`echo "scale=1;$SIZE/1048576" | bc`M
- else
- SIZE=`echo "scale=1;$SIZE/1024" | bc`K
- fi
- else
- SIZE={$SIZE}B
- fi
- fi
- echo "$PKG | $SIZE"
-done