Skip to content

Instantly share code, notes, and snippets.

@darealshinji
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darealshinji/510aed68b819163919cd to your computer and use it in GitHub Desktop.
Save darealshinji/510aed68b819163919cd to your computer and use it in GitHub Desktop.
#!/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