3bcfb76e45
- put asmconv in /usr/bin so it can be invoked without absolute path - make it ignore .end in gnu output mode so that it can be invoked without '|| true' in the gnu lib makefiles and it doesn't produce the messy error message
26 lines
519 B
Bash
26 lines
519 B
Bash
#!/bin/sh
|
|
|
|
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/xbin
|
|
|
|
t=/etc/binary_sizes
|
|
|
|
if [ "$#" -ne 1 ]
|
|
then echo "Usage: $0 <big|normal|xxl>"
|
|
exit 1
|
|
fi
|
|
|
|
if [ "$1" != normal ]
|
|
then t=$t.$1
|
|
fi
|
|
|
|
chmem =250000 /usr/lib/em_* /usr/lib/cpp* /usr/lib/cv >/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 " 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
|
|
fi
|
|
exit 0
|