summaryrefslogtreecommitdiffstats
path: root/x/binutils/ld/dep-in.sed
diff options
context:
space:
mode:
Diffstat (limited to 'x/binutils/ld/dep-in.sed')
-rw-r--r--x/binutils/ld/dep-in.sed20
1 files changed, 20 insertions, 0 deletions
diff --git a/x/binutils/ld/dep-in.sed b/x/binutils/ld/dep-in.sed
new file mode 100644
index 0000000..83418e2
--- /dev/null
+++ b/x/binutils/ld/dep-in.sed
@@ -0,0 +1,20 @@
+:loop
+/\\$/N
+/\\$/b loop
+
+s!@INCDIR@!$(INCDIR)!g
+s!@TOPDIR@/include!$(INCDIR)!g
+s!@BFDDIR@!$(BFDDIR)!g
+s!@TOPDIR@/bfd!$(BFDDIR)!g
+s!@SRCDIR@/!!g
+s! \.\./bfd/hosts/[^ ]*\.h! !g
+s! \.\./intl/libintl\.h!!g
+
+s/\\\n */ /g
+
+s/ *$//
+s/ */ /g
+/:$/d
+
+s/\(.\{50\}[^ ]*\) /\1 \\\
+ /g
OpenPOWER on IntegriCloud