From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29720 invoked by alias); 26 Mar 2002 22:00:38 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 29663 invoked from network); 26 Mar 2002 22:00:33 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 26 Mar 2002 22:00:33 -0000 Received: from greed.delorie.com (cse.cygnus.com [205.180.230.236]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id OAA17083; Tue, 26 Mar 2002 14:00:30 -0800 (PST) Received: (from dj@localhost) by greed.delorie.com (8.11.6/8.11.6) id g2QM0Rc14288; Tue, 26 Mar 2002 17:00:27 -0500 Date: Tue, 26 Mar 2002 14:00:00 -0000 Message-Id: <200203262200.g2QM0Rc14288@greed.delorie.com> From: DJ Delorie To: hjl@lucon.org CC: gdb@sources.redhat.com, gcc@gcc.gnu.org In-reply-to: <20020326135334.A8928@lucon.org> (hjl@lucon.org) Subject: Re: The canadian cross build is broken References: <20020322225214.A23883@lucon.org> <3C9C9F3A.6030609@cygnus.com> <20020323101441.A799@lucon.org> <200203252214.g2PMEqj02765@greed.delorie.com> <20020326132429.A8347@lucon.org> <200203262149.g2QLnIK14130@greed.delorie.com> <20020326135334.A8928@lucon.org> X-SW-Source: 2002-03/txt/msg00249.txt.bz2 > Why? Here is the fragment. $frag won't be empty. The default one is > mh-${host_cpu}pic: In some future cases, it may end up getting added twice, in other cases, it's empty and may cause problems. For example, for cygwin frag remains set to its previous value (currently empty) so you end up adding "config/" to the list of frags. > if [ "${shared}" = "yes" ]; then > case "${host}" in > *-*-cygwin*) ;; > Later, we check if it exists: > > for frag in ${frags}; do > if [ -f ${frag} ]; then > echo "Appending ${frag} to xhost-mkfrag" > echo "# Following fragment copied from ${frag}" >> temp-frag > cat ${frag} >> temp-frag > fi > done > > before appending it. Did I miss something? Some broken OSs may treat directories as meeting "test -f" :-(