add github release mechanism

This commit is contained in:
2020-10-02 20:45:16 +06:00
parent 04e6c7b574
commit 17c6d4a889
5 changed files with 59 additions and 0 deletions

27
changelog_info_retriever Normal file
View File

@@ -0,0 +1,27 @@
#!/bin/bash
function parse() {
version=$1
read -r
while [ -z "`echo $REPLY | grep -e "^#\+ $version"`" ]
do
read -r
done
read -r
while [ -z "`echo $REPLY | grep -e "^#\+"`" ]
do
echo "$REPLY"
read -r
done
}
version=$1
file=$2
if [ -n "$file" ]; then
parse $version < "$file"
else
parse $version
fi