-
Notifications
You must be signed in to change notification settings - Fork 556
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(update/write-release-notes.sh): add html/head/body tags
- Loading branch information
Showing
1 changed file
with
17 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,25 @@ | ||
#!/bin/bash | ||
|
||
# writes an HTML page for changes inr the latest release. | ||
# writes an HTML page for changes in the latest release | ||
|
||
cat <<EOF > release-notes.html | ||
<!DOCTYPE HTML> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
</head> | ||
<body> | ||
EOF | ||
|
||
# take advantage of the fact that change log generator | ||
# places 3 new lines after each chapter for a new release. | ||
|
||
cat CHANGELOG.md | awk '{ | ||
print; | ||
if ($0 == "") ++new_lines; else new_lines = 0; | ||
if (new_lines >= 3) exit; | ||
}' | marked --gfm > release-notes.html | ||
}' | marked >> release-notes.html | ||
|
||
cat <<EOF >> release-notes.html | ||
</body> | ||
</html> | ||
EOF |