From 7ea8c16c9f239fbf580cc4c6a6a530de531687f2 Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Thu, 3 Nov 2022 18:46:40 -0700 Subject: [PATCH] LP1995653: small create_release_notes script changes Signed-off-by: Jane Sandberg Signed-off-by: Jason Boyer --- docs/RELEASE_NOTES_NEXT/create_release_notes.sh | 30 +++++++++++-------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/docs/RELEASE_NOTES_NEXT/create_release_notes.sh b/docs/RELEASE_NOTES_NEXT/create_release_notes.sh index 151dc19fe5..f5281d2ace 100755 --- a/docs/RELEASE_NOTES_NEXT/create_release_notes.sh +++ b/docs/RELEASE_NOTES_NEXT/create_release_notes.sh @@ -13,39 +13,33 @@ if [ -z "$ver" ]; then echo "I need a version: -r"; exit; fi outfile="../RELEASE_NOTES_$ver.adoc" -title="Evergreen $ver Release Notes" +title="= Evergreen $ver Release Notes =" echo $title > $outfile; -for j in `seq 1 ${#title}`; do echo -n '='; done >> $outfile - -echo >> $outfile echo ':toc:' >> $outfile echo ':numbered:' >> $outfile +echo ':toclevels: 3' >> $outfile echo >> $outfile -echo Upgrade notes >> $outfile -echo ------------- >> $outfile +echo '== Upgrade notes ==' >> $outfile echo >> $outfile -echo New Features >> $outfile -echo ------------ >> $outfile +echo '== New Features ==' >> $outfile echo >> $outfile +echo ':leveloffset: +2' >> $outfile + for i in `ls -l|grep ^d|awk '{print $9}'`; do files=$(ls $i/*{txt,adoc} 2>/dev/null) if [ "_$files" != "_" ]; then echo >> $outfile echo >> $outfile - echo $i >> $outfile - for j in `seq 1 ${#i}`; do echo -n '~'; done >> $outfile - echo >> $outfile + echo "= $i =" >> $outfile echo >> $outfile for j in $files; do echo >> $outfile - echo >> $outfile cat $j >> $outfile echo >> $outfile - echo >> $outfile done fi done @@ -53,18 +47,20 @@ done files=$(ls *{txt,adoc} 2>/dev/null | grep -v 'RELEASE_NOTE_TEMPLATE.adoc') if [ "_$files" != "_" ]; then echo >> $outfile - echo Miscellaneous >> $outfile - echo ------------- >> $outfile + echo '= Miscellaneous =' >> $outfile echo >> $outfile for j in $files; do cat $j >> $outfile done fi +echo >> $outfile +echo ':leveloffset: 0' >> $outfile +echo >> $outfile + if [ -f _acknowledgments ]; then echo >> $outfile - echo "Acknowledgments" >> $outfile - echo "---------------" >> $outfile + echo "== Acknowledgments ==" >> $outfile cat _acknowledgments >> $outfile echo >> $outfile fi -- 2.11.0