Add vim-changelog.sh, a vim changelog generator
OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=517
This commit is contained in:
parent
e70825c7be
commit
bc820345b1
11
vim-changelog.sh
Normal file
11
vim-changelog.sh
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user