diff options
author | bde <bde@FreeBSD.org> | 1996-09-07 21:16:44 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-09-07 21:16:44 +0000 |
commit | 984fd335eb4b3697cd4ce16686cc4dbbf72475d7 (patch) | |
tree | 6597211e534e334003d307eda77c9881537f2511 /sys/i386/boot/biosboot/Makefile | |
parent | 9106ad330164d3120c2d337391fdf260f872b96f (diff) | |
download | FreeBSD-src-984fd335eb4b3697cd4ce16686cc4dbbf72475d7.zip FreeBSD-src-984fd335eb4b3697cd4ce16686cc4dbbf72475d7.tar.gz |
Remove boot2 when the size test fails so that rebuilding without fixing
the problem doesn't bogusly succeed.
Print size failures to stderr instead of stdout and don't print bells
and whistles.
Diffstat (limited to 'sys/i386/boot/biosboot/Makefile')
-rw-r--r-- | sys/i386/boot/biosboot/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/i386/boot/biosboot/Makefile b/sys/i386/boot/biosboot/Makefile index 4efe003..a64991a 100644 --- a/sys/i386/boot/biosboot/Makefile +++ b/sys/i386/boot/biosboot/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.43 1996/09/04 18:28:33 julian Exp $ +# $Id: Makefile,v 1.44 1996/09/05 21:12:04 julian Exp $ # PROG= boot @@ -77,7 +77,9 @@ boot2: boot.nohdr dd if=boot.nohdr of=boot2 bs=512 skip=1 @dd if=boot2 skip=14 of=sizetest 2> /dev/null @if [ -s sizetest ] ; then \ - echo "*** Boot2 is too BIG ***" ; exit 2 ; \ + echo "boot2 is too big" >&2 ; \ + rm boot2 ; \ + exit 2 ; \ fi all: boot1 boot2 |