From: Ben Gras Date: Mon, 3 Apr 2006 18:47:28 +0000 (+0000) Subject: Don't redirect stderr to /dev/null X-Git-Tag: v3.1.2a~76 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=38676609c1bde7f0b1d2b4c741cb298cfcaa5f2f;p=minix.git Don't redirect stderr to /dev/null --- diff --git a/drivers/memory/ramdisk/Makefile b/drivers/memory/ramdisk/Makefile index eb47df5d3..90179fd04 100644 --- a/drivers/memory/ramdisk/Makefile +++ b/drivers/memory/ramdisk/Makefile @@ -22,7 +22,7 @@ bintoc: bintoc.c $(CC) -o $@ bintoc.c image: proto.gen mtab rc $(PROGRAMS) - mkfs -B 2048 image proto.gen 2>/dev/null || { rm -f image; false; } + mkfs -B 2048 image proto.gen || { rm -f image; false; } at_wini: ../../at_wini/at_wini install -s ../../$@/$@ $@ @@ -94,7 +94,7 @@ depend: /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend proto.gen: $(MAKEDEV) proto.sh proto - sh -e proto.sh proto.gen + sh -e proto.sh >proto.gen # Include generated dependencies. include .depend diff --git a/drivers/memory/ramdisk/proto.sh b/drivers/memory/ramdisk/proto.sh index bbf879eb3..c3b837740 100644 --- a/drivers/memory/ramdisk/proto.sh +++ b/drivers/memory/ramdisk/proto.sh @@ -1,7 +1,8 @@ #!/bin/sh +rm -rf t mkdir t 2>/dev/null || true cd t -MAKEDEV std 2>/dev/null +MAKEDEV std rm fd1* fd0p* tcp* eth* ip* udp* tty[pq]* pty* sed -n '1,/@DEV/p' <../proto | grep -v @DEV@ ls -aln | grep '^[bc]' | \