- added 'datasizes' script that shows you the size allocated
for each symbol, usually answering those "why is does my binary have such a lot of BSS" questions. - stop binpackage looking in /var/spool for package files. - let makewhatis recognize .Sh as heading name - setup, fsck, df: allow >4kB block sizes painlessly - mkfs: new #-of-inodes heuristic that depends on kb, not on blocks; i've run out of inodes on my /usr - asmconv: don't silently truncate .aligns to 16 bytes - ipc* commands for shared memory support
This commit is contained in:
@@ -42,6 +42,7 @@ usr: \
|
||||
/bin/setup \
|
||||
/bin/netconf \
|
||||
/usr/bin/binsizes \
|
||||
/usr/bin/datasizes \
|
||||
/usr/bin/rotate \
|
||||
/usr/bin/floppysetup \
|
||||
/usr/bin/packit \
|
||||
@@ -149,6 +150,9 @@ clean:
|
||||
/usr/bin/binsizes: binsizes.sh
|
||||
install -m 755 -c -o bin $? $@
|
||||
|
||||
/usr/bin/datasizes: datasizes.sh
|
||||
install -m 755 -c -o bin $? $@
|
||||
|
||||
/usr/bin/packit: packit.sh
|
||||
install -m 755 -c -o bin $? $@
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ fi
|
||||
|
||||
echo " * Building package"
|
||||
echo "Minix package $dir built `date`." >$INFO
|
||||
( echo $INFO ; if [ -f $PI ]; then echo $PI; fi; find / -cnewer $packagestart | egrep -v "^($srcdir|/(dev|tmp)|/usr/(src|tmp|log|adm|run)|/home|/etc/utmp|/var/(run|log))" ) | pax -w -d | bzip2 >$tarbz
|
||||
( echo $INFO ; if [ -f $PI ]; then echo $PI; fi; find / -cnewer $packagestart | egrep -v "^($srcdir|/(dev|tmp)|/usr/(src|tmp|log|adm|run)|/home|/etc/utmp|/var/(run|log|spool))" ) | pax -w -d | bzip2 >$tarbz
|
||||
rm -f $packagestart $findlist $tarcmd
|
||||
binsizes normal
|
||||
mv $tarbz $pdir
|
||||
|
||||
8
commands/scripts/datasizes.sh
Normal file
8
commands/scripts/datasizes.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ $# -ne 1 ]
|
||||
then echo "Usage: $0 <executable>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
nm -d -n $1 | grep ' [bBdD] ' | awk '{ printf "%10ld kB %s\n", ($1-lastpos)/1024, lastname; lastpos=$1; lastname=$3 }' | sort -n
|
||||
@@ -29,6 +29,7 @@ cd $1 || exit
|
||||
|
||||
sed -e 's/ / /g
|
||||
s/"NAME"/NAME/g
|
||||
s/^\.Sh/\.SH/g
|
||||
/^\.SH NAME/,/^\.SH /!d
|
||||
/^\.SH /d
|
||||
s/\\f.//g
|
||||
|
||||
@@ -436,7 +436,7 @@ installboot -m /dev/$primary /usr/mdec/masterboot >/dev/null || exit
|
||||
partition /dev/$primary 1 81:${ROOTSECTS}* 81:$homesize 81:0+ > /dev/null || exit
|
||||
|
||||
echo "Creating /dev/$root for / .."
|
||||
mkfs -B $blocksizebytes /dev/$root || exit
|
||||
mkfs /dev/$root || exit
|
||||
|
||||
if [ "$nohome" = 0 ]
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user