This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PATCH to top level: don't use dirname in configure


Jeffrey A Law <law@cygnus.com> 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  <msokolov@ivan.Harhan.ORG>

	* 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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]