Last active
August 29, 2015 14:01
-
-
Save darealshinji/510aed68b819163919cd to your computer and use it in GitHub Desktop.
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
#!/bin/sh -e | |
# delete previous changelogs | |
rm -f ChangeLog* | |
# download changelog | |
wget -k http://plorkyeran.com/aegisub/ | |
# delete lines with following content | |
sed -i "/<h1>Aegisub trunk builds/d; | |
/class='download'>/d; | |
/<link /d; | |
/<p>Please report bugs on <a href=/d; | |
/<p>There are not really any advantages/d; | |
/<h3>Older builds/d; | |
/Pre-3.0.0 builds/d" index.html | |
mv index.html ChangeLog.html | |
# convert html to text | |
html2text ChangeLog.html > ChangeLog.txt | |
# add newlines between each new changelog entry | |
sed -i 's/\*\*\*\* /\n\*\*\*\* /g' ChangeLog.txt | |
##### pre 3.0 ##### | |
rm -f changelog_pre_3.0.* | |
wget http://plorkyeran.com/aegisub/pre_3.0.html | |
sed -i "/<h1>Aegisub trunk builds/d; | |
/class=\"download\">/d; | |
/<link /d" pre_3.0.html | |
mv pre_3.0.html changelog_pre_3.0.html | |
html2text changelog_pre_3.0.html > changelog_pre_3.0.txt | |
sed -i 's/\*\*\*\* /\n\*\*\*\* /g' changelog_pre_3.0.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment