source: trunk/minix/commands/scripts/binsizes.sh@ 21

Last change on this file since 21 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 456 bytes
Line 
1#!/bin/sh
2
3t=/etc/binary_sizes
4
5if [ "$#" -ne 1 ]
6then echo "Usage: $0 <big|normal>"
7 exit 1
8fi
9
10if [ "$1" != normal ]
11then t=$t.$1
12fi
13
14chmem =250000 /usr/lib/* /usr/lib/i386/* >/dev/null 2>&1
15chmem =600000 /usr/lib/ego/* >/dev/null 2>&1
16if [ -f $t ]
17then cat "$t" | while read line
18 do awk '{ print "chmem =" $2 " " $1 " 2>&1 | grep -v area.changed.from || exit 1"}'
19 done | /bin/sh -e || exit 1
20else
21 echo "$0: $t does not exist" >&2
22 exit 1
23fi
24exit 0
Note: See TracBrowser for help on using the repository browser.