LP#1482336 - Add *.adoc support to create_release_notes.sh
authorJosh Stompro <stomproj@larl.org>
Thu, 3 Sep 2015 21:22:00 +0000 (16:22 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 4 Nov 2015 17:09:27 +0000 (17:09 +0000)
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 <stomproj@larl.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
docs/RELEASE_NOTES_NEXT/create_release_notes.sh

index 47d6e7d..120dc2f 100755 (executable)
@@ -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