4 while getopts r: opt; do
12 if [ -z "$ver" ]; then echo "I need a version: -r"; exit; fi
14 outfile="../RELEASE_NOTES_$ver.adoc"
16 title="= Evergreen $ver Release Notes ="
18 echo $title > $outfile;
19 echo ':toc:' >> $outfile
20 echo ':numbered:' >> $outfile
21 echo ':toclevels: 3' >> $outfile
23 echo '== Upgrade notes ==' >> $outfile
26 echo '== New Features ==' >> $outfile
29 echo ':leveloffset: +2' >> $outfile
31 for i in `ls -l|grep ^d|awk '{print $9}'`; do
32 files=$(ls $i/*{txt,adoc} 2>/dev/null)
33 if [ "_$files" != "_" ]; then
36 echo "= $i =" >> $outfile
47 files=$(ls *{txt,adoc} 2>/dev/null | grep -v 'RELEASE_NOTE_TEMPLATE.adoc')
48 if [ "_$files" != "_" ]; then
50 echo '= Miscellaneous =' >> $outfile
58 echo ':leveloffset: 0' >> $outfile
61 if [ -f _acknowledgments ]; then
63 echo "== Acknowledgments ==" >> $outfile
64 cat _acknowledgments >> $outfile