diff options
author | Anders Svensson <[email protected]> | 2014-04-01 13:47:29 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2014-04-01 13:47:29 +0200 |
commit | 6a5e712203407e846905776d579f641ea39a38cf (patch) | |
tree | 39fd07806079d2017f49d93e4fc84b1b11aff30a /lib/diameter/src/app.sed | |
parent | 30c1285702d3c4daace2f23824879b8186e559b7 (diff) | |
parent | 81eefc9958e9bb3e64eebccc87b38acd56cb62df (diff) | |
download | otp-6a5e712203407e846905776d579f641ea39a38cf.tar.gz otp-6a5e712203407e846905776d579f641ea39a38cf.tar.bz2 otp-6a5e712203407e846905776d579f641ea39a38cf.zip |
Merge branch 'anders/diameter/17.0_release/OTP-11825'
* anders/diameter/17.0_release/OTP-11825:
Simplify xref tests in app suite
Add app suite test for app file runtime_dependencies
Generate runtime_dependencies in app file
Remove syntax_tools and runtime_tools from app file
Diffstat (limited to 'lib/diameter/src/app.sed')
-rw-r--r-- | lib/diameter/src/app.sed | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/lib/diameter/src/app.sed b/lib/diameter/src/app.sed new file mode 100644 index 0000000000..7916f65002 --- /dev/null +++ b/lib/diameter/src/app.sed @@ -0,0 +1,40 @@ +# +# %CopyrightBegin% +# +# Copyright Ericsson AB 2014. 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% + +# +# Generate runtime_dependencies from applications to avoid having to +# specify the same application more than once. +# + +/{runtime_dependencies,/b v +/{[-a-z]*, "[0-9.]*"}/!b +/{vsn,/b + +/%%/!H +s/{\([^,]*\)[^}]*}/\1/g +s/%%/%,/ +b + +:v + +p +x +s/\n// +s/%//g +s/\n */ /g +s/{\([^,]*\), "\([^"]*"\)}/"\1-\2/g |