From: Ben Gras Date: Tue, 30 Aug 2005 10:20:39 +0000 (+0000) Subject: Preparing for minix sizer X-Git-Tag: v3.1.0~244 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/doc/spin.js?a=commitdiff_plain;h=41e63917800fd2f1d4724ce071ce60b225260bd4;p=minix.git Preparing for minix sizer --- diff --git a/commands/scripts/Makefile b/commands/scripts/Makefile index 4f5f51d3b..5cdcef8b6 100755 --- a/commands/scripts/Makefile +++ b/commands/scripts/Makefile @@ -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 $? $@ diff --git a/commands/scripts/bigmake.sh b/commands/scripts/bigmake.sh new file mode 100644 index 000000000..a1fb86e70 --- /dev/null +++ b/commands/scripts/bigmake.sh @@ -0,0 +1,6 @@ +#!/bin/sh +minixsize big +make $* +c=$? +minixsize normal +exit $c diff --git a/commands/scripts/minixsize.sh b/commands/scripts/minixsize.sh index 1a2485251..8c4fa8a60 100644 --- a/commands/scripts/minixsize.sh +++ b/commands/scripts/minixsize.sh @@ -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