From bc820345b1619d5560f7ea1ba8a5d26fb35da05f312581696354fce935b2bc89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Wed, 19 Sep 2018 12:19:32 +0000 Subject: [PATCH] Add vim-changelog.sh, a vim changelog generator OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=517 --- vim-changelog.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 vim-changelog.sh 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