Documentation changes needed to support RTD
[ric-plt/lib/rmr.git] / doc / src / rtd / fmt_changes.ksh
1 # vim: ts=4 noet sw=4:
2 #==================================================================================
3 #       Copyright (c) 2019 Nokia
4 #       Copyright (c) 2018-2019 AT&T Intellectual Property.
5 #
6 #   Licensed under the Apache License, Version 2.0 (the "License");
7 #   you may not use this file except in compliance with the License.
8 #   You may obtain a copy of the License at
9 #
10 #       http://www.apache.org/licenses/LICENSE-2.0
11 #
12 #   Unless required by applicable law or agreed to in writing, software
13 #   distributed under the License is distributed on an "AS IS" BASIS,
14 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 #   See the License for the specific language governing permissions and
16 #   limitations under the License.
17 #==================================================================================
18
19 # format the changes file at the top level into xfm input
20 cat <<endKat
21 .im setup.im
22 &h1(RMR Release Notes)
23 The following is a list of release highlights for the core RMR library.
24 These are extracted directly from the CHANGES file at the repo root; 
25 please refer to that file for a completely up to date listing of
26 API changes.  
27 &space
28
29 endKat
30
31 sed 's/^/!/' ../../../CH*|awk ' 
32
33         print_raw && /^!$/ { 
34                 printf( "&space\n\n" ); 
35                 next 
36         } 
37
38         { gsub ( "!", "", $1 ) }
39
40         $1 + 0 >= 2019 {
41                 print_raw = 1
42                 printf( "&h2(%s)\n", $0 )
43                 next 
44         }
45
46         print_raw { print } 
47         '