From mboxrd@z Thu Jan 1 00:00:00 1970 From: msokolov@ivan.Harhan.ORG (Michael Sokolov) To: binutils@sources.redhat.com, gcc-patches@gcc.gnu.org, gdb-patches@sources.redhat.com Subject: Re: PATCH to top level: don't use dirname in configure Date: Sun, 23 Jul 2000 09:44:00 -0000 Message-id: <0007231642.AA21279@ivan.Harhan.ORG> X-SW-Source: 2000-07/msg00424.html Jeffrey A Law wrote: > ## this sed command emulates the dirname command > dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` > > [...] > > Michael -- can you verify the sed command I provided above does the right > thing for you? Yes, it does. So would you like a patch like the one below? -- Michael Sokolov Harhan Engineering Laboratory Public Service Agent International Free Computing Task Force International Engineering and Science Task Force 615 N GOOD LATIMER EXPY STE #4 DALLAS TX 75204-5852 USA Phone: +1-214-824-7693 (Harhan Eng Lab office) E-mail: msokolov@ivan.Harhan.ORG (ARPA TCP/SMTP) (UUCP coming soon) 2000-07-23 Michael Sokolov * configure (topsrcdir): Don't use dirname. Index: configure =================================================================== RCS file: /cvs/src/src/configure,v retrieving revision 1.10 diff -c -r1.10 configure *** configure 2000/07/22 08:20:10 1.10 --- configure 2000/07/23 16:37:44 *************** *** 518,524 **** configsub=`echo ${progname} | sed 's/configure$/config.sub/'` moveifchange=`echo ${progname} | sed 's/configure$/move-if-change/'` ! topsrcdir=`cd \`dirname ${progname}\`; pwd` # this is a hack. sun4 must always be a valid host alias or this will fail. --- 518,525 ---- configsub=`echo ${progname} | sed 's/configure$/config.sub/'` moveifchange=`echo ${progname} | sed 's/configure$/move-if-change/'` ! ## the sed command below emulates the dirname command ! topsrcdir=`cd \`echo ${progname} | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'\`; pwd` # this is a hack. sun4 must always be a valid host alias or this will fail.