diff --git a/vim-changelog.sh b/vim-changelog.sh new file mode 100644 index 0000000..b607f11 --- /dev/null +++ b/vim-changelog.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env zsh + +directory=http://ftp.vim.org/pub/vim/patches +version=8.1 + +echo "Updated to revision $(echo $2 | sed 's/^0*//'), fixes the following problems" +for i in {$1..$2}; do + curl $directory/$version/$version.$i -s | grep -v "Binary file (standard input) matches" | \ + tr -d '\n' | grep -oP "Problem:.*Solution:" | sed s,"Problem: "," * ", | sed s,"Solution:",, | \ + tr '\t' '\n' | sed s,' ','', | fmt -w 80 +done