d614f5a310
- vim-changelog.sh: * use https:// URL for authenticity. For this URL needs to be changed to nluugl.nl which is the actual server behind this and the SSL certificate only works for this URL. * Check for number of arguments. * Maintain leading zeroes in version arguments, otherwise things like `vim-changelog.sh 0007 0010` fail to work. OBS-URL: https://build.opensuse.org/request/show/876001 OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=651
17 lines
567 B
Bash
17 lines
567 B
Bash
#!/usr/bin/env zsh
|
|
|
|
directory=https://ftp.nluug.nl/pub/vim/patches/
|
|
version=8.2
|
|
|
|
if [ $# -ne 2 ]; then
|
|
echo "usage: $0 <old-minor-version> <new-minor-version>" 1>&2
|
|
exit 1
|
|
fi
|
|
|
|
echo "Updated to version $version.$(echo $2 | sed 's/^*//'), fixes the following problems"
|
|
for i in $(seq -w $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
|