Preparing for minix sizer

This commit is contained in:
Ben Gras 2005-08-30 10:20:39 +00:00
parent a9302ba6e3
commit 41e6391780
3 changed files with 19 additions and 0 deletions

View file

@ -14,6 +14,7 @@ usr: \
/usr/bin/M \ /usr/bin/M \
/usr/bin/U \ /usr/bin/U \
/usr/bin/MAKEDEV \ /usr/bin/MAKEDEV \
/usr/bin/bigmake \
/usr/bin/adduser \ /usr/bin/adduser \
/usr/bin/cd \ /usr/bin/cd \
/usr/bin/[ \ /usr/bin/[ \
@ -75,6 +76,9 @@ clean:
/usr/bin/MAKEDEV: MAKEDEV.sh /usr/bin/MAKEDEV: MAKEDEV.sh
install -m 755 -c -o bin $? $@ install -m 755 -c -o bin $? $@
/usr/bin/bigmake: bigmake.sh
install -m 755 -c -o bin $? $@
/usr/bin/adduser: adduser.sh /usr/bin/adduser: adduser.sh
install -m 755 -c -o bin $? $@ install -m 755 -c -o bin $? $@

View file

@ -0,0 +1,6 @@
#!/bin/sh
minixsize big
make $*
c=$?
minixsize normal
exit $c

View file

@ -1 +1,10 @@
#!/bin/sh #!/bin/sh
t=/usr/src/etc/binary_sizes
if [ "$1" = big ]
then t=$t.big
fi
if [ -f $t ]
then cat "$t" | while read line
do awk '{ print "chmem =" $2 " " $1 }'
done | /bin/sh
fi