summaryrefslogtreecommitdiff
path: root/ld/dep-in.sed
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2009-05-26 03:20:10 +0000
committerAlan Modra <amodra@bigpond.net.au>2009-05-26 03:20:10 +0000
commit15b9bbaeb4c967ce4f04a331764aebd2cb59e4fb (patch)
tree8311e249f8fa77a94b48684659485eacdae74c7a /ld/dep-in.sed
parent1e74549cbd8a527e6ee85fb83ed40471e8ecc914 (diff)
downloadbinutils-redhat-15b9bbaeb4c967ce4f04a331764aebd2cb59e4fb.tar.gz
* dep-in.sed: Output one filename per line with all lines having
continuation backslash. Prefix first line with "A", following lines with "B". * Makefile.am (DEP): Don't use dep.sed here. (DEP1): Run $MKDEP on single files, use dep.sed here on dependencies, sort and uniq. * Makefile.in: Regenerate.
Diffstat (limited to 'ld/dep-in.sed')
-rw-r--r--ld/dep-in.sed12
1 files changed, 5 insertions, 7 deletions
diff --git a/ld/dep-in.sed b/ld/dep-in.sed
index 0bf6ffe395..e51593b192 100644
--- a/ld/dep-in.sed
+++ b/ld/dep-in.sed
@@ -1,6 +1,7 @@
:loop
/\\$/N
-/\\$/b loop
+s/\\\n */ /g
+t loop
s! \./! !g
s!@INCDIR@!$(INCDIR)!g
@@ -11,11 +12,8 @@ s!@SRCDIR@/!!g
s! \.\./bfd/hosts/[^ ]*\.h! !g
s! \.\./intl/libintl\.h!!g
-s/\\\n */ /g
-
s/ *$//
s/ */ /g
-/:$/d
-
-s/\(.\{50\}[^ ]*\) /\1 \\\
- /g
+s/^ */A/
+s/ / \\\nB/g
+$s/$/ \\/