diff --git a/tools/extract-patch-data.sh b/tools/extract-patch-data.sh index 25725fcb..d14eb118 100644 --- a/tools/extract-patch-data.sh +++ b/tools/extract-patch-data.sh @@ -2,9 +2,6 @@ set -euo pipefail -MESSAGE="" -LICENSE="" - while read -r current_line; do if [[ $current_line =~ ^Filename:* ]]; then FILENAME=${current_line:9} @@ -28,7 +25,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 @@ -36,6 +33,12 @@ 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)" \