X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=doc%2Fsrc%2Frtd%2Ffmt_changes.ksh;h=47c684d28a32244c23adee1c620fdb05e8958cd9;hb=117030c67f7a3722e64f1ecc3305a5862b3b7ce9;hp=3a1498cbdb96ac6780bdf488f67ad9a9eacf01e1;hpb=392168d467d7949f391602f53f9fd62d2a64d12b;p=ric-plt%2Flib%2Frmr.git diff --git a/doc/src/rtd/fmt_changes.ksh b/doc/src/rtd/fmt_changes.ksh index 3a1498c..47c684d 100644 --- a/doc/src/rtd/fmt_changes.ksh +++ b/doc/src/rtd/fmt_changes.ksh @@ -16,32 +16,52 @@ # limitations under the License. #================================================================================== -# format the changes file at the top level into xfm input +# Mnemonic: fmt_changes.ksh +# Abstract: This script looks for CHANGES*.txt files at the top level +# and builds one {X}fm source file from which the release notes +# RTD file is created. + cat <= 2019 { - print_raw = 1 - printf( "&h2(%s)\n", $0 ) - next - } +for x in ../../../CHANGES*.txt +do + case $x in + *CORE*) printf "&h2(Core RMR Changes)\n" ;; + *) printf "&h2(Wrapper Changes)\n" ;; + esac - print_raw { print } - ' + sed 's/^/!/' $x | awk ' + print_raw && /^!$/ { + printf( "&space\n\n" ); + next + } + + { gsub ( "!", "", $1 ) } + + $1 + 0 >= 2019 { + print_raw = 1 + printf( "&h3(%s)\n", $0 ) + next + } + + print_raw { print } + ' ### +done