minix/commands/scripts/binsizes.sh

27 lines
526 B
Bash
Raw Normal View History

#!/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin
t=/etc/binary_sizes
if [ "$#" -ne 1 ]
then echo "Usage: $0 <big|normal|xxl>"
exit 1
fi
if [ "$1" != normal ]
then t=$t.$1
2005-08-30 12:20:39 +02:00
fi
chmem =250000 /usr/lib/em_* /usr/lib/cpp* /usr/lib/cv /usr/lib/asmconv >/dev/null 2>&1
2005-10-07 16:00:52 +02:00
chmem =600000 /usr/lib/ego/* >/dev/null 2>&1
2005-08-30 12:20:39 +02:00
if [ -f $t ]
then cat "$t" | while read line
2006-03-22 16:08:14 +01:00
do awk '{ print "chmem =" $2 " " $1 " 2>&1 | grep -v area.changed.from || exit 1"}'
done | /bin/sh -e || exit 1
else
echo "$0: $t does not exist" >&2
exit 1
2005-08-30 12:20:39 +02:00
fi
exit 0