Added binary (compiler) size adjustment script

This commit is contained in:
Ben Gras 2005-08-29 19:38:39 +00:00
parent 2fbf4f9bdb
commit 92cb06d0e9
3 changed files with 17 additions and 0 deletions

View file

@ -22,3 +22,7 @@ install::
cd /dev && sh /usr/src/commands/scripts/MAKEDEV.sh std 2>/dev/null cd /dev && sh /usr/src/commands/scripts/MAKEDEV.sh std 2>/dev/null
@echo "Making user homedirs.." @echo "Making user homedirs.."
for u in bin ast root; do (cd ast && tar cf - .[a-z]* ) | (cd ~$$u && tar xf - ); chown -R $$u ~$$u; done for u in bin ast root; do (cd ast && tar cf - .[a-z]* ) | (cd ~$$u && tar xf - ); chown -R $$u ~$$u; done
postinstall:
sh chmem.sh binary_sizes

9
etc/binary_sizes Normal file
View file

@ -0,0 +1,9 @@
/usr/lib/i386/as 53721
/usr/lib/i386/cg 86625
/usr/lib/cpp.ansi 200000
/usr/lib/cv 82934
/usr/lib/em_cemcom.ansi 958660
/usr/lib/em_led 1608955
/usr/lib/em_m2 171667
/usr/lib/em_opt 175934
/usr/lib/em_encode 20000

4
etc/chmem.sh Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
cat "$1" | while read line
do awk '{ print "chmem =" $2 " " $1 }'
done | /bin/sh