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]
Other format: [Raw text]

Re: [trunk][patch] Install headers and plugin-version.o


Is the attached patch OK?

2009-05-06  Rafael Avila de Espindola  <espindola@google.com>

	* Makefile.in (install-plugin): Fix srcdir handling.

> Cheers,
> Ralf
>


Cheers,
-- 
Rafael Avila de Espindola

Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 89ac516..4439820 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -4020,8 +4020,9 @@ install-plugin: installdirs
 	  else continue; \
 	  fi; \
 	  case $$path in \
-	  "$(srcdir)"*/config/* | "$(srcdir)"*.def ) \
-	    base=`echo $$path | sed "s|$(srcdir)||"`;; \
+	  "$(srcdir)"*/config/* | "$(srcdir)"/*.def ) \
+	    srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`; \
+	    base=`echo "$$path" | sed -e "s|$$srcdirstrip/||"`;; \
 	  *) base=`basename $$path` ;; \
 	  esac; \
 	  dest=$(plugin_includedir)/$$base; \

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