Preparing for minix sizer
This commit is contained in:
parent
a9302ba6e3
commit
41e6391780
3 changed files with 19 additions and 0 deletions
|
@ -14,6 +14,7 @@ usr: \
|
|||
/usr/bin/M \
|
||||
/usr/bin/U \
|
||||
/usr/bin/MAKEDEV \
|
||||
/usr/bin/bigmake \
|
||||
/usr/bin/adduser \
|
||||
/usr/bin/cd \
|
||||
/usr/bin/[ \
|
||||
|
@ -75,6 +76,9 @@ clean:
|
|||
/usr/bin/MAKEDEV: MAKEDEV.sh
|
||||
install -m 755 -c -o bin $? $@
|
||||
|
||||
/usr/bin/bigmake: bigmake.sh
|
||||
install -m 755 -c -o bin $? $@
|
||||
|
||||
/usr/bin/adduser: adduser.sh
|
||||
install -m 755 -c -o bin $? $@
|
||||
|
||||
|
|
6
commands/scripts/bigmake.sh
Normal file
6
commands/scripts/bigmake.sh
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
minixsize big
|
||||
make $*
|
||||
c=$?
|
||||
minixsize normal
|
||||
exit $c
|
|
@ -1 +1,10 @@
|
|||
#!/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
|
||||
|
|
Loading…
Reference in a new issue