You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Convert changelog entries from markdown link format to simplified "* description (username)" format
29
+
sed -i -re 's/^- (.*) \[.*\) \(\[(.*)\]\(.*/* \1 (\2)/' changelog_temp.txt
30
+
# Create new changelog format: add version header, remove lines 2-3, format section headers, remove ## headers with following line, prepend to existing changelog
31
+
echo"VERSION[${RELEASE_VERSION#v}][$(date +'%Y/%m/%d')]"| cat - changelog_temp.txt | sed '2,3d'| sed -re 's/^### (.*)/\n--- \1 ---/'| sed -e '/^##.*/,+1 d'| cat - changelog.txt > changelog_new.txt
32
+
mv changelog_new.txt changelog.txt
33
+
34
+
# Normalize line endings to CRLF for all output files to ensure consistent checksums with Windows
35
+
sed 's/\r*$/\r/' CHANGELOG.md > CHANGELOG_normalized.md && mv CHANGELOG_normalized.md CHANGELOG.md
36
+
sed 's/\r*$/\r/' changelog.txt > changelog_normalized.txt && mv changelog_normalized.txt changelog.txt
0 commit comments