From c970553e482114d1787dd28262866db3de37eaab Mon Sep 17 00:00:00 2001 From: Josh Stompro Date: Thu, 3 Sep 2015 16:22:00 -0500 Subject: [PATCH] LP#1482336 - Add *.adoc support to create_release_notes.sh This allows release note entries under /docs/RELEASE_NOTES_NEXT to use the .adoc extension. It also changes the output file format to .adoc because why not. Signed-off-by: Josh Stompro Signed-off-by: Galen Charlton --- docs/RELEASE_NOTES_NEXT/create_release_notes.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/RELEASE_NOTES_NEXT/create_release_notes.sh b/docs/RELEASE_NOTES_NEXT/create_release_notes.sh index 47d6e7ddb1..120dc2ffd3 100755 --- a/docs/RELEASE_NOTES_NEXT/create_release_notes.sh +++ b/docs/RELEASE_NOTES_NEXT/create_release_notes.sh @@ -11,7 +11,7 @@ done if [ -z "$ver" ]; then echo "I need a version: -r"; exit; fi -outfile="../RELEASE_NOTES_$ver.txt" +outfile="../RELEASE_NOTES_$ver.adoc" title="Evergreen $ver Release Notes" @@ -31,7 +31,7 @@ echo ------------ >> $outfile echo >> $outfile for i in `ls -l|grep ^d|awk '{print $9}'`; do - files=$(ls $i/*txt 2>/dev/null) + files=$(ls $i/*{txt,adoc} 2>/dev/null) if [ "_$files" != "_" ]; then echo >> $outfile echo >> $outfile @@ -50,7 +50,7 @@ for i in `ls -l|grep ^d|awk '{print $9}'`; do fi done -files=$(ls *txt 2>/dev/null | grep -v 'RELEASE_NOTE_TEMPLATE.txt') +files=$(ls *{txt,adoc} 2>/dev/null | grep -v 'RELEASE_NOTE_TEMPLATE.txt') if [ "_$files" != "_" ]; then echo >> $outfile echo Miscellaneous >> $outfile -- 2.11.0