From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32541 invoked by alias); 12 May 2005 13:03:25 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 30712 invoked from network); 12 May 2005 13:02:40 -0000 Received: from unknown (HELO legolas.inter.net.il) (192.114.186.24) by sourceware.org with SMTP; 12 May 2005 13:02:40 -0000 Received: from zaretski (IGLD-83-130-254-105.inter.net.il [83.130.254.105]) by legolas.inter.net.il (MOS 3.5.6-GR) with ESMTP id EIY20171 (AUTH halo1); Thu, 12 May 2005 16:02:38 +0300 (IDT) Date: Thu, 12 May 2005 13:06:00 -0000 From: "Eli Zaretskii" To: gdb-patches@sourceware.org Message-ID: <01c556f2$Blat.v2.4$87fb60c0@zahav.net.il> Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=ISO-8859-1 In-reply-to: <20050511233254.GB10961@nevyn.them.org> (message from Daniel Jacobowitz on Wed, 11 May 2005 19:32:54 -0400) Subject: Re: ylwrap Reply-to: Eli Zaretskii References: <01c55663$Blat.v2.4$7e448d20@zahav.net.il> <20050511200816.GB4104@nevyn.them.org> <01c5567f$Blat.v2.4$1479f760@zahav.net.il> <20050511233254.GB10961@nevyn.them.org> X-SW-Source: 2005-05/txt/msg00273.txt.bz2 > Date: Wed, 11 May 2005 19:32:54 -0400 > From: Daniel Jacobowitz > Cc: gdb-patches@sourceware.org > > > So what do I do for now? wait until we resync with the latest version, > > or commit my changes in the GDB CVS? Or maybe something else? > > Hard to say in absence of the proposed changes. The first thing to do > is make sure that the latest version in automake is OK, or fix it. The proposed patches are below; they fix the script's notion of absolute file names on Windows/DOS. The latest versions of the script, both in the released Automake 1.9 and in Automake's CVS, already include the equivalents of these patches. Unless you (or someone else) are going to import the latest version of ylwrap VSN, I'd like to commit these changes to the GDB repository, since they should be harmless. TIA Index: ylwrap =================================================================== RCS file: /cvs/src/src/ylwrap,v retrieving revision 1.3 diff -u -r1.3 ylwrap --- ylwrap 24 Sep 2004 13:21:46 -0000 1.3 +++ ylwrap 12 May 2005 12:57:36 -0000 @@ -31,15 +31,15 @@ shift # Make any relative path in $prog absolute. case "$prog" in - /* | [A-Za-z]:\\*) ;; - */*) prog="`pwd`/$prog" ;; + [\\/]* | [A-Za-z]:[\\/]*) ;; + *[\\/]*) prog="`pwd`/$prog" ;; esac # The input. input="$1" shift case "$input" in - /* | [A-Za-z]:\\*) + [\\/]* | [A-Za-z]:[\\/]*) # Absolute path; do nothing. ;; *) @@ -52,7 +52,7 @@ # We don't want to use the absolute path if the input in the current # directory like when making a tar ball. -input_base=`echo $input | sed -e 's|.*/||'` +input_base=`echo $input | sed -e 's|.*[\\/]||'` if test -f $input_base && cmp $input_base $input >/dev/null 2>&1; then input=$input_base fi @@ -75,7 +75,7 @@ cd $dirname case "$input" in - /* | [A-Za-z]:\\*) + [\\/]* | [A-Za-z]:[\\/]*) # Absolute path; do nothing. ;; *) @@ -95,7 +95,7 @@ # If $2 is an absolute path name, then just use that, # otherwise prepend `../'. case "$2" in - /* | [A-Za-z]:\\*) target="$2";; + [\\/]* | [A-Za-z]:[\\/]*) target="$2";; *) target="../$2";; esac mv "$1" "$target" || status=$?