summaryrefslogtreecommitdiff
path: root/opcodes/dep-in.sed
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2014-12-23 14:38:46 +0000
committer <>2015-05-26 15:48:41 +0000
commit5500a97a2ad1735db5b35bc51cfb825c1f4c38df (patch)
treecc6e777c26142b88456ff03a672e1cb69215fc32 /opcodes/dep-in.sed
downloadbinutils-tarball-master.tar.gz
Imported from /home/lorry/working-area/delta_binutils-tarball/binutils-2.25.tar.bz2.HEADbinutils-2.25master
Diffstat (limited to 'opcodes/dep-in.sed')
-rw-r--r--opcodes/dep-in.sed20
1 files changed, 20 insertions, 0 deletions
diff --git a/opcodes/dep-in.sed b/opcodes/dep-in.sed
new file mode 100644
index 0000000..56403a9
--- /dev/null
+++ b/opcodes/dep-in.sed
@@ -0,0 +1,20 @@
+:loop
+/\\$/N
+s/\\\n */ /g
+t loop
+
+s! \./! !g
+s! @BFD_H@! $(BFD_H)!g
+s!@INCDIR@!$(INCDIR)!g
+s!@TOPDIR@/include!$(INCDIR)!g
+s!@BFDDIR@!$(BFDDIR)!g
+s!@TOPDIR@/bfd!$(BFDDIR)!g
+s!@SRCDIR@/!!g
+s! \.\./intl/libintl\.h!!g
+
+s/ *$//
+s/ */ /g
+s/^ */A/
+s/ / \\\
+B/g
+$s/$/ \\/