aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/test/depend.sed
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2011-11-10 12:54:43 +0100
committerAnders Svensson <[email protected]>2011-11-10 15:50:29 +0100
commit248246f2aba834e75fe87a3d6f880cbfb7cd4afa (patch)
tree7c924a42354af679105ac57798d867d11b04caa8 /lib/diameter/test/depend.sed
parentb3dc95296f842d452645d4120f077247c753e2ba (diff)
downloadotp-248246f2aba834e75fe87a3d6f880cbfb7cd4afa.tar.gz
otp-248246f2aba834e75fe87a3d6f880cbfb7cd4afa.tar.bz2
otp-248246f2aba834e75fe87a3d6f880cbfb7cd4afa.zip
Simplify handling of generated hrls in testsuites
Just morph include into include_lib when releasing. Not using include_lib here is due to generated hrls not residing in diameter/include until after release. See release.sed.
Diffstat (limited to 'lib/diameter/test/depend.sed')
-rw-r--r--lib/diameter/test/depend.sed18
1 files changed, 14 insertions, 4 deletions
diff --git a/lib/diameter/test/depend.sed b/lib/diameter/test/depend.sed
index a399eb45f0..95dca44984 100644
--- a/lib/diameter/test/depend.sed
+++ b/lib/diameter/test/depend.sed
@@ -18,14 +18,24 @@
#
#
-# Extract local include dependencies from .erl files. The output is massaged
-# further in Makefile.
+# Extract local include dependencies from an .erl file. The first
+# input line is the module name.
#
-/^-include/!d
+# Store the module name in the hold space.
+1{
+ h
+ d
+}
+
+# Throw away everything but local includes.
/^-include_lib/d
+/^-include/!d
/diameter_gen/d
+/diameter\./d
+# Output a dependency of the beam on the included file.
s@^-include("@@
s@".*@@
-s@^@$(EBIN)/.$(EMULATOR): @
+G
+s@^\(.*\)\n\(.*\)@$(EBIN)/\2.$(EMULATOR): \1@