This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch] Fixup more relative directories when building --enable-debug


On Tue, Jan 07, 2003 at 05:06:12PM -0400, Brad Spencer wrote:
> ...  And by the way, is there a reason
> this isn't just done with a pipe? 
> 
> ...
>   sed 's/top_builddir = ../top_builddir = ..\/../g' \
>   < Makefile > temp.1; \
>   sed 's/all-local: build_debug/all-local:/g' < temp.1 > temp.2; \
>   sed 's/install-data-local: install_debug/install-data-local:/g' \
>   < temp.2 > temp.3; \
>           mv temp.3 Makefile) ; \

Why even a pipe?  Also, the "g" modifiers seem inappropriate.

   sed -e 's/top_builddir = \.\./top_builddir = ..\/../' \
       -e 's/all-local: build_debug/all-local:/'  \
       -e 's/install-data-local: install_debug/install-data-local:/' \
       < Makefile > temp.1 && 
         mv temp.1 Makefile \
   ) \

Nathan Myers
ncm-nospam@cantrip.org


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