diff --git a/tools/extract-patch-data.sh b/tools/extract-patch-data.sh index d14eb118..25725fcb 100644 --- a/tools/extract-patch-data.sh +++ b/tools/extract-patch-data.sh @@ -2,6 +2,9 @@ set -euo pipefail +MESSAGE="" +LICENSE="" + while read -r current_line; do if [[ $current_line =~ ^Filename:* ]]; then FILENAME=${current_line:9} @@ -25,7 +28,7 @@ while read -r current_line; do break elif [ -n "$current_line" ]; then - if [ -n "$MESSAGE" ]; then + if [ -n "$MESSAGE" ]; then MESSAGE+="
" fi MESSAGE+=$current_line @@ -33,12 +36,6 @@ while read -r current_line; do fi done -# echo FROM: $FROM -# echo SUBJECT: $SUBJECT -# echo DATE: $DATE -# echo LICENSE: $LICENSE -# echo -e MESSAGE: $MESSAGE - echo "|**$SUBJECT**" \ "
$DATE" \ "
File: [$FILENAME](/build/patches/$FILENAME)" \