From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-qt0-x241.google.com ([2607:f8b0:400d:c0d::241]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1dBuKA-0003Lk-Vu for ptxdist@pengutronix.de; Sat, 20 May 2017 04:40:59 +0200 Received: by mail-qt0-x241.google.com with SMTP id r58so11888953qtb.2 for ; Fri, 19 May 2017 19:40:58 -0700 (PDT) From: jon@ringle.org Date: Fri, 19 May 2017 22:40:48 -0400 Message-Id: <1495248048-12419-1-git-send-email-jon@ringle.org> Subject: [ptxdist] [PATCH v2] 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 ciBhcyBteSBJREUgYmVjYXVzZQpxdGNyZWF0b3Igd2lsbCBvbmx5IGZpbHRlciBzdGRlcnIgZm9y IGVycm9ycy93YXJuaW5ncyB0byBw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