Browse Source

Update to 8.1

vim
mid-kid 8 years ago
parent
commit
11a65537c1
  1. BIN
      vim-7.4.1938.tar.xz
  2. 2
      vim-gvim.SlackBuild
  3. 22
      vim.SlackBuild
  4. BIN
      vim.vimrc.diff.gz

BIN
vim-7.4.1938.tar.xz

Binary file not shown.

2
vim-gvim.SlackBuild

@ -23,7 +23,7 @@
# This package must be build right after the main vim package, and the # This package must be build right after the main vim package, and the
# generated vim package must still be in $TMP. # generated vim package must still be in $TMP.
VIMBRANCH=7.4 VIMBRANCH=8.1
VERSION=$(echo vim-${VIMBRANCH}*.tar.xz | rev | cut -f 3- -d . | cut -f 1 -d - | rev) VERSION=$(echo vim-${VIMBRANCH}*.tar.xz | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
BUILD=${BUILD:-1} BUILD=${BUILD:-1}

22
vim.SlackBuild

@ -20,16 +20,34 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
VIMBRANCH=7.4 VIMBRANCH=8.1
CTAGSVER=5.8 CTAGSVER=5.8
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
CWD=$(pwd) CWD=$(pwd)
if [ "$1" = "check" ]; then
VERSION=$(echo vim-${VIMBRANCH}*.tar.xz | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
NEWVERSION="$(echo $(basename $(wget -q -O - https://github.com/vim/vim/releases | grep -F v${VIMBRANCH} | head -n 1 | cut -f 2 -d \" )) | cut -b2- )"
if [ ! "$NEWVERSION" ]; then
echo "Failed to fetch latest version"
exit
fi
if [ "$VERSION" != "$NEWVERSION" ]; then
echo "New version available: $NEWVERSION"
exit
fi
echo "No updates available"
exit
fi
if [ -r vim-${VIMBRANCH}*.tar.xz ]; then # if there's a source archive already, use the version number from it: if [ -r vim-${VIMBRANCH}*.tar.xz ]; then # if there's a source archive already, use the version number from it:
VERSION=$(echo vim-${VIMBRANCH}*.tar.xz | rev | cut -f 3- -d . | cut -f 1 -d - | rev) VERSION=$(echo vim-${VIMBRANCH}*.tar.xz | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
else # need to fetch the latest source archive for this branch: else # need to fetch the latest source archive for this branch:
VERSION="$(echo $(basename $(wget -q -O - https://github.com/vim/vim/releases | grep v${VIMBRANCH} | head -n 1 | cut -f 2 -d \" )) | cut -b2- )" VERSION="$(echo $(basename $(wget -q -O - https://github.com/vim/vim/releases | grep -F v${VIMBRANCH} | head -n 1 | cut -f 2 -d \" )) | cut -b2- )"
( lftpget https://github.com/vim/vim/archive/v${VERSION}.tar.gz ( lftpget https://github.com/vim/vim/archive/v${VERSION}.tar.gz
gzip -d v${VERSION}.tar.gz gzip -d v${VERSION}.tar.gz
mv v${VERSION}.tar vim-${VERSION}.tar mv v${VERSION}.tar vim-${VERSION}.tar

BIN
vim.vimrc.diff.gz

Binary file not shown.
Loading…
Cancel
Save