From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-qk0-x244.google.com ([2607:f8b0:400d:c09::244]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1dBtwW-0008Un-SF for ptxdist@pengutronix.de; Sat, 20 May 2017 04:16:33 +0200 Received: by mail-qk0-x244.google.com with SMTP id o85so12435935qkh.0 for ; Fri, 19 May 2017 19:16:32 -0700 (PDT) From: jon@ringle.org Date: Fri, 19 May 2017 22:16:20 -0400 Message-Id: <1495246580-30358-3-git-send-email-jon@ringle.org> In-Reply-To: <1495246580-30358-1-git-send-email-jon@ringle.org> References: <1495246580-30358-1-git-send-email-jon@ringle.org> Subject: [ptxdist] [PATCH 3/3] ptxd_make_world_compile.sh: conditionally redirect stderr>stdout List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Jon Ringle RnJvbTogSm9uIFJpbmdsZSA8anJpbmdsZUBncmlkcG9pbnQuY29tPgoKSSBkaXNjb3ZlcmVkIGFm dGVyIHVwZGF0aW5nIHRvIGEgbmV3IHZlcnNpb24gb2YgcHR4ZGlzdCB0aGF0IGFsbCBvZiBteQpj b21waWxlIG91dHB1dCBpbmNsdWRpbmcgZXJyb3JzL3dhcm5pbmdzIGFyZSBub3cgYWxsIGdvaW5n IHRvIHN0ZG91dAppbnN0ZWFkIG9mIGhhdmluZyB0aGUgZXJyb3JzL3dhcm5pbmcgZ29pbmcgdG8g c3RkZXJyLgoKVGhpcyBpcyBjYXVzaW5nIHNvbWUgcHJvYmxlbSB3aGVuIEkgdXNlIHF0Y3JlYXRv ciBhcyBteSBJREUgYmVjYXVzZQpxdGNyZWF0b3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