aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/test/release.sed
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2011-11-11 14:42:29 +0100
committerAnders Svensson <[email protected]>2011-11-11 14:42:29 +0100
commit74c2fa9b2d34ae8d40cc6ea9c2dc4aee2b0cb083 (patch)
tree5d8c29b18a1327531ddab73cbe5befde7bb78069 /lib/diameter/test/release.sed
parent78dd1afd1521dafcb8ea4e18262f97259a67ee59 (diff)
parent4d3691c921d023fa1afee4d1e3ea9bce64f6f59f (diff)
downloadotp-74c2fa9b2d34ae8d40cc6ea9c2dc4aee2b0cb083.tar.gz
otp-74c2fa9b2d34ae8d40cc6ea9c2dc4aee2b0cb083.tar.bz2
otp-74c2fa9b2d34ae8d40cc6ea9c2dc4aee2b0cb083.zip
Merge branch 'anders/diameter/make/OTP-9638'
* anders/diameter/make/OTP-9638: Fix comment typo Simplify handling of generated hrls in testsuites Minor dependency fix Target cleanup in test/Makefile
Diffstat (limited to 'lib/diameter/test/release.sed')
-rw-r--r--lib/diameter/test/release.sed35
1 files changed, 35 insertions, 0 deletions
diff --git a/lib/diameter/test/release.sed b/lib/diameter/test/release.sed
new file mode 100644
index 0000000000..2720b778f2
--- /dev/null
+++ b/lib/diameter/test/release.sed
@@ -0,0 +1,35 @@
+#
+# %CopyrightBegin%
+#
+# Copyright Ericsson AB 2010-2011. All Rights Reserved.
+#
+# The contents of this file are subject to the Erlang Public License,
+# Version 1.1, (the "License"); you may not use this file except in
+# compliance with the License. You should have received a copy of the
+# Erlang Public License along with this software. If not, it can be
+# retrieved online at http://www.erlang.org/.
+#
+# Software distributed under the License is distributed on an "AS IS"
+# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+# the License for the specific language governing rights and limitations
+# under the License.
+#
+# %CopyrightEnd%
+#
+
+#
+# This bit of gymnastics is to replace the include of diameter's
+# public hrls by include_lib when releasing testsuites, so that they
+# compile both in the development filesystem (where generated hrls
+# aren't in diameter/include) and with common_test's autocompilation
+# on an installed release. Solving the problem by installing generated
+# hrls to ../include is anathema: that directory is for handwritten
+# source.)
+#
+
+/^-include("/!b
+/"diameter_gen_/b s
+/"diameter\./!b
+
+:s
+s@("@_lib&diameter/include/@