]> Zhao Yanbai Git Server - minix.git/commitdiff
Preparing for minix sizer
authorBen Gras <ben@minix3.org>
Tue, 30 Aug 2005 10:20:39 +0000 (10:20 +0000)
committerBen Gras <ben@minix3.org>
Tue, 30 Aug 2005 10:20:39 +0000 (10:20 +0000)
commands/scripts/Makefile
commands/scripts/bigmake.sh [new file with mode: 0644]
commands/scripts/minixsize.sh

index 4f5f51d3bb3c48ca6491cc8160b393c51b1f124f..5cdcef8b6df6129aa2a9d9b4e25d9509a36e4759 100755 (executable)
@@ -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 (file)
index 0000000..a1fb86e
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+minixsize big
+make $*
+c=$?
+minixsize normal
+exit $c
index 1a2485251c33a70432394c93fb89330ef214bfc9..8c4fa8a60f185b992e643d0b307264021e02587c 100644 (file)
@@ -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