diff options
Diffstat (limited to 'editors/vim/vim-patches-tarball')
-rwxr-xr-x | editors/vim/vim-patches-tarball | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/editors/vim/vim-patches-tarball b/editors/vim/vim-patches-tarball index 492250f6aa..7d460c10cc 100755 --- a/editors/vim/vim-patches-tarball +++ b/editors/vim/vim-patches-tarball @@ -1,21 +1,28 @@ #!/bin/bash # creates up-to-date vim patches tarball -wget ftp://ftp.vim.org/pub/vim/patches/7.3/MD5SUMS -LAST=$(tail -n 1 MD5SUMS | cut -f 3 -d " " | cut -f 3 -d .) +VERSION=7.4 -mkdir patches -cd patches +wget ftp://ftp.vim.org/pub/vim/patches/${VERSION}/MD5SUMS && +LAST=$(tail -n 1 MD5SUMS | cut -f 3 -d " " | cut -f 3 -d .) && -PATCHES=$(eval echo {001..$LAST}) +SOURCE_DIRECTORY=vim-${VERSION}-patches-001-$LAST && +DISTFILE=vim-${VERSION}-patches-001-$LAST.tar.xz + +mkdir $SOURCE_DIRECTORY && +cd $SOURCE_DIRECTORY && + +PATCHES=$(eval echo {001..$LAST}) && for i in $PATCHES; do - wget ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.$i -done + wget ftp://ftp.vim.org/pub/vim/patches/${VERSION}/${VERSION}.$i +done && + +cd .. && + -cd .. +tar cvf - $SOURCE_DIRECTORY | xz -9 > $DISTFILE && -tar cvf vim-7.3-patches-001-$LAST.tar patches -bzip2 vim-7.3-patches-001-$LAST.tar +rm -r $SOURCE_DIRECTORY && -rm -r patches +sha512sum $DISTFILE |