diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-05 12:40:39 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-05 12:40:39 +0000 |
commit | e67b162788d1aee2d37b3f24bde1c87da62562b6 (patch) | |
tree | 0450d3ffdb3f1d75ea144aaca62de0de01ed658f /configure | |
parent | e630752581c74676afaeeb9d5d2e705ce4b6c360 (diff) | |
download | gcc-e67b162788d1aee2d37b3f24bde1c87da62562b6.tar.gz |
* configure, configure.in: Use temp file for long sed commands.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47669 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/configure b/configure index afc5bec7a73..8c6870a222d 100755 --- a/configure +++ b/configure @@ -89,7 +89,7 @@ subdirs= target_alias=NOTARGET target_makefile_frag= undefs=NOUNDEFS -version="$Revision: 1.38 $" +version="$Revision: 1.39 $" x11=default bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' @@ -1370,9 +1370,14 @@ EOF # remove any form feeds. if [ -z "${subdirs}" ]; then rm -f ${subdir}/Makefile.tm2 - sed -e "s:^SUBDIRS[ ]*=.*$:SUBDIRS = ${configdirs}:" \ - -e "s:^NONSUBDIRS[ ]*=.*$:NONSUBDIRS = ${noconfigdirs}:" \ + sedtemp=sed.$$ + cat >$sedtemp <<EOF +s:^SUBDIRS[ ]*=.*$:SUBDIRS = ${configdirs}: +s:^NONSUBDIRS[ ]*=.*$:NONSUBDIRS = ${noconfigdirs}: +EOF + sed -f $sedtemp \ ${subdir}/Makefile.tem > ${subdir}/Makefile.tm2 + rm -f $sedtemp rm -f ${subdir}/Makefile.tem mv ${subdir}/Makefile.tm2 ${subdir}/Makefile.tem fi |