tools: remove unused fields Category/Context

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
This commit is contained in:
Emil Velikov
2024-06-03 21:43:17 +01:00
parent cc1be019d7
commit abde6d117a
-9
View File
@@ -15,18 +15,12 @@ do
elif [[ $current_line =~ ^License:* ]]; then
LICENSE=`echo ${current_line:9} | cut -d ' ' -f1`
elif [[ $current_line =~ ^Category:* ]]; then
CATEGORY=`echo ${current_line:9} | cut -d ' ' -f1`
elif [[ $current_line =~ ^"Original License:"* ]]; then
continue
elif [[ $current_line =~ ^From:* ]]; then
FROM=`echo ${current_line:5} | cut -d ' ' -f1`
elif [[ $current_line =~ ^Context:* ]]; then
CONTEXT=${current_line:8}
elif [[ $current_line =~ ^---* ]]; then
break
@@ -43,8 +37,6 @@ done
# echo SUBJECT: $SUBJECT
# echo DATE: $DATE
# echo LICENSE: $LICENSE
# echo CONTEXT: $CONTEXT
# echo CATEGORY: $CATEGORY
# echo -e MESSAGE: $MESSAGE
SUBJECT=`echo $SUBJECT | xargs`
@@ -53,7 +45,6 @@ echo "|**$SUBJECT**" \
"<br><sub><nobr>"$DATE"</nobr>" \
"<br>File: [$(basename $PATCH)](/build/patches/$(basename $PATCH))" \
"<br><nobr>Author: "$FROM"</nobr>" \
"<br><nobr>Context: "$CONTEXT"</nobr>" \
"<br><nobr>License: "$LICENSE"</nobr>" \
"|"$MESSAGE"|"
)