Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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