Skip to content

Commit

Permalink
Fix changelog2metainfo.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Wilms authored Feb 16, 2023
1 parent 26d8843 commit 0ab40b8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions changelog2metainfo.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#!/usr/bin/env bash

. .github/scripts/get-version.sh > /dev/null
cd .github
. scripts/get-version.sh > /dev/null
cd ..
RELEASE_OPENING_TAG="<release date=\"$RELEASE_DATE\" version=\"$TXS_VERSION\">"
DESCRIPTION_OPENING_TAG="<description>"
LIST_OPENING_TAG="<ul>"
CHANGELOG=$(sed '/^[[:space:]]*$/d' utilities/manual/CHANGELOG.txt | tail -n +2 | awk 'NR==2,/TeXstudio/' | head -n -1 | sed -e 's|^-|<li>|g' | sed -e 's|$|</li>|g' | sed -e 's|<li>\s\{1,\}|<li>|g' )
CHANGELOG=$(sed '/^[[:space:]]*$/d' utilities/manual/source/CHANGELOG.md | tail -n +2 | awk 'NR==2,/TeXstudio/' | head -n -1 | sed -e 's|^-|<li>|g' | sed -e 's|$|</li>|g' | sed -e 's|<li>\s\{1,\}|<li>|g' )
CHANGELOG="${CHANGELOG//
/\\n}"
LIST_CLOSING_TAG="</ul>"
Expand Down

0 comments on commit 0ab40b8

Please sign in to comment.