aboutsummaryrefslogtreecommitdiff
path: root/gprof/dep-in.sed
diff options
context:
space:
mode:
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/$/ \\/