aboutsummaryrefslogtreecommitdiff
path: root/gprof/dep-in.sed
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2009-05-26 03:20:10 +0000
committerAlan Modra <amodra@gmail.com>2009-05-26 03:20:10 +0000
commit00f3247a62aa73c2cd8f80d8d8614a89bc417301 (patch)
tree45593758fa23bf957546b1c7858a943842d8215f /gprof/dep-in.sed
parent5de4cd1336d5bc50c1cd281eaacf62058e8a905b (diff)
downloadgdb-00f3247a62aa73c2cd8f80d8d8614a89bc417301.zip
gdb-00f3247a62aa73c2cd8f80d8d8614a89bc417301.tar.gz
gdb-00f3247a62aa73c2cd8f80d8d8614a89bc417301.tar.bz2
* 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 'gprof/dep-in.sed')
-rw-r--r--gprof/dep-in.sed13
1 files changed, 6 insertions, 7 deletions
diff --git a/gprof/dep-in.sed b/gprof/dep-in.sed
index aeb22a1..0461228 100644
--- a/gprof/dep-in.sed
+++ b/gprof/dep-in.sed
@@ -1,7 +1,9 @@
:loop
/\\$/N
-/\\$/b loop
+s/\\\n */ /g
+t loop
+s! \./! !g
s!@INCDIR@!$(INCDIR)!g
s!@TOPDIR@/include!$(INCDIR)!g
s!@BFDDIR@!$(BFDDIR)!g
@@ -10,11 +12,8 @@ s!@SRCDIR@/!!g
s!@OBJDIR@/!!g
s! \.\./intl/libintl\.h!!g
-s/\\\n */ /g
-
s/ *$//
s/ */ /g
-/:$/d
-
-s/\(.\{50\}[^ ]*\) /\1 \\\
- /g
+s/^ */A/
+s/ / \\\nB/g
+$s/$/ \\/