From: Ben Gras Date: Mon, 22 Jan 2007 15:47:40 +0000 (+0000) Subject: No /usr/src.* shenanigans any more. X-Git-Tag: v3.1.3~103 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/doc/syslog.conf.5.html?a=commitdiff_plain;h=f9e4768eb4170213073fed1eb94a74ff78daf97f;p=minix.git No /usr/src.* shenanigans any more. --- diff --git a/commands/scripts/setup.sh b/commands/scripts/setup.sh index 03d3f796c..fde49370b 100755 --- a/commands/scripts/setup.sh +++ b/commands/scripts/setup.sh @@ -22,26 +22,6 @@ USRKB="`cat /.usrkb`" TOTALMB="`expr 3 + $USRKB / 1024 + $ROOTMB`" ROOTFILES="`cat /.rootfiles`" USRFILES="`cat /.usrfiles`" -EXTRASRCFILES="`cat /.extrasrcfiles`" -EXTRASRCKB="`cat /.extrasrckb`" - -# Install size without extra sources (rounded up) -NOSRCMB="`expr $TOTALMB - $EXTRASRCKB / 1024`" -NOSRCUSRFILES="`expr $USRFILES - $EXTRASRCFILES`" - -if [ "$EXTRASRCKB" -lt 1 ] -then - echo "Are you really running from CD?" - echo "Something wrong with the extra-source-kb on CD." - exit 1 -fi - -if [ "$EXTRASRCFILES" -lt 1 ] -then - echo "Are you really running from CD?" - echo "Something wrong with the extra-source-files estimate on CD." - exit 1 -fi if [ "$TOTALMB" -lt 1 ] then @@ -199,30 +179,35 @@ done # end Step 2 # begin Step 3 -step3="" -while [ "$step3" != ok ] -do - echo "" - echo " --- Step 3: Select minimal or full distribution -----------------------" - echo "" - echo "You can install MINIX as (M)inimal or (F)ull. (M)inimal" - echo "includes only the binary system and basic system sources." - echo "(F)ull also includes commands sources." - echo "" - echo "Please select:" - echo " (M)inimal install (only basic sources) ($NOSRCMB MB required)" - echo " (F)ull install (full install) ($TOTALMB MB required)" - echo " " - echo -n "Basic (M)inimal or (F)ull install? [F] " - read conf - case "$conf" in - "") step3="ok"; nobigsource="" ;; - [Ff]*) step3="ok"; nobigsource="" ;; - [Mm]*) step3="ok"; nobigsource="1"; TOTALMB=$NOSRCMB; USRFILES=$NOSRCUSRFILES ;; - esac -done +#step3="" +#while [ "$step3" != ok ] +#do +# echo "" +# echo " --- Step 3: Select minimal or full distribution -----------------------" +# echo "" +# echo "You can install MINIX as (M)inimal or (F)ull. (M)inimal" +# echo "includes only the binary system and basic system sources." +# echo "(F)ull also includes commands sources." +# echo "" +# echo "Please select:" +# echo " (M)inimal install (only basic sources) ($NOSRCMB MB required)" +# echo " (F)ull install (full install) ($TOTALMB MB required)" +# echo " " +# echo -n "Basic (M)inimal or (F)ull install? [F] " +# read conf +# case "$conf" in +# "") step3="ok"; nobigsource="" ;; +# [Ff]*) step3="ok"; nobigsource="" ;; +# [Mm]*) step3="ok"; nobigsource="1"; TOTALMB=$NOSRCMB; USRFILES=$NOSRCUSRFILES ;; +# esac +#done # end Step 3 +echo "" +echo " --- Step 3: Selecting full distribution -------------------------------" +echo "" +nobigsource="" + # begin Step 4 step4="" while [ "$step4" != ok ] @@ -549,24 +534,13 @@ echo "" mount /dev/$usr /mnt >/dev/null || exit # Mount the intended /usr. (cd /usr || exit 1 - if [ "$nobigsource" = 1 ] - then list="`ls | fgrep -v src. | fgrep -v install`" - else list="`ls | fgrep -v install`" - fi + list="`ls | fgrep -v install`" for d in $list do cpdir -v $d /mnt/$d done ) | progressbar "$USRFILES" || exit # Copy the usr floppy. -if [ -d /mnt/src.commands ] -then mv /mnt/src.commands /mnt/src/commands -fi - -if [ -d /mnt/src.contrib ] -then mv /mnt/src.contrib /mnt/src/contrib -fi - # Set inet.conf to correct driver if [ -n "$driver" ] then echo "$driverargs" >$MYLOCALRC fi diff --git a/tools/chrootmake.sh b/tools/chrootmake.sh index d777b4ddd..16d56897d 100755 --- a/tools/chrootmake.sh +++ b/tools/chrootmake.sh @@ -20,7 +20,6 @@ make clean su bin -c 'makewhatis /usr/man' su bin -c 'makewhatis /usr/gnu/man' su bin -c 'makewhatis /usr/local/man' -mv /usr/src/commands /usr/src.commands binsizes normal exit 0 diff --git a/tools/release.sh b/tools/release.sh index 90b31a718..e8cb53cf8 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -324,8 +324,6 @@ echo $version_pretty >$RELEASEDIR/etc/version echo " * Counting files" extrakb=`du -s $RELEASEDIR/usr/install | awk '{ print $1 }'` expr `df $TMPDISK | tail -1 | awk '{ print $4 }'` - $extrakb >$RELEASEDIR/.usrkb -du -s $RELEASEDIR/usr/src.* | awk '{ t += $1 } END { print t }' >$RELEASEDIR/.extrasrckb -( for d in $RELEASEDIR/usr/src.*; do find $d; done) | wc -l >$RELEASEDIR/.extrasrcfiles find $RELEASEDIR/usr | fgrep -v /install/ | wc -l >$RELEASEDIR/.usrfiles find $RELEASEDIR -xdev | wc -l >$RELEASEDIR/.rootfiles echo " * Zeroing remainder of temporary areas"