minix/commands/scripts/binsizes.sh
Ben Gras aa3932eb8b Added 'xxl' binsizes size for x.
Leave sh and make at normal size for 'big'.
Call binsizes normal after creating release.
2006-03-03 12:44:22 +00:00

22 lines
369 B
Bash

#!/bin/sh
t=/etc/binary_sizes
if [ "$#" -ne 1 ]
then echo "Usage: $0 <big|normal>"
exit 1
fi
if [ "$1" != normal ]
then t=$t.$1
fi
chmem =250000 /usr/lib/* /usr/lib/i386/* >/dev/null 2>&1
chmem =600000 /usr/lib/ego/* >/dev/null 2>&1
if [ -f $t ]
then cat "$t" | while read line
do awk '{ print "chmem =" $2 " " $1 " >/dev/null 2>&1 "}'
done | /bin/sh
fi
exit 0