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 for j in `seq 1 ${#title}`; do echo -n '='; done >> $outfile
22 echo ':toc:' >> $outfile
23 echo ':numbered:' >> $outfile
25 echo Upgrade notes >> $outfile
26 echo ------------- >> $outfile
29 echo New Features >> $outfile
30 echo ------------ >> $outfile
33 for i in `ls -l|grep ^d|awk '{print $9}'`; do
34 files=$(ls $i/*{txt,adoc} 2>/dev/null)
35 if [ "_$files" != "_" ]; then
39 for j in `seq 1 ${#i}`; do echo -n '~'; done >> $outfile
53 files=$(ls *{txt,adoc} 2>/dev/null | grep -v 'RELEASE_NOTE_TEMPLATE.adoc')
54 if [ "_$files" != "_" ]; then
56 echo Miscellaneous >> $outfile
57 echo ------------- >> $outfile
64 if [ -f _acknowledgments ]; then
66 echo "Acknowledgments" >> $outfile
67 echo "---------------" >> $outfile
68 cat _acknowledgments >> $outfile