X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=doc%2Fsrc%2Frtd%2Ffmt_changes.ksh;h=930bce44f613804df56b1cd42393db8d710dfe2b;hb=refs%2Fchanges%2F85%2F4085%2F3;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..930bce4 100644 --- a/doc/src/rtd/fmt_changes.ksh +++ b/doc/src/rtd/fmt_changes.ksh @@ -16,32 +16,55 @@ # 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 - } + $1 + 0 >= 2019 { + print_raw = 1 # safe to print blank lines + printf( "&h2(%s)\n", $0 ) + next + } - print_raw { print } - ' + print_raw { print } + ' $x +done