diff options
author | Anders Svensson <[email protected]> | 2011-11-10 12:54:43 +0100 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2011-11-10 15:50:29 +0100 |
commit | 248246f2aba834e75fe87a3d6f880cbfb7cd4afa (patch) | |
tree | 7c924a42354af679105ac57798d867d11b04caa8 /lib/diameter/test/release.sed | |
parent | b3dc95296f842d452645d4120f077247c753e2ba (diff) | |
download | otp-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/release.sed')
-rw-r--r-- | lib/diameter/test/release.sed | 35 |
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/@ |