install.fairie/dotfiles/.vim/plugged/editorconfig-vim/tests/fetch-vim.sh
Git E2E Dev Test Username 067e2361df git subrepo clone https://github.com/editorconfig/editorconfig-vim.git ./dotfiles/.vim/plugged/editorconfig-vim
subrepo:
  subdir:   "dotfiles/.vim/plugged/editorconfig-vim"
  merged:   "d354117b"
upstream:
  origin:   "https://github.com/editorconfig/editorconfig-vim.git"
  branch:   "master"
  commit:   "d354117b"
git-subrepo:
  version:  "0.4.3"
  origin:   "???"
  commit:   "???"
2022-10-18 10:36:49 -04:00

41 lines
934 B
Bash
Executable file

#!/bin/bash
# fetch-vim.bat: Fetch vim if necessary
# For use in the editorconfig-vim Appveyor build
# Copyright (c) 2018--2019 Chris White. All rights reserved.
# Licensed Apache 2.0, or any later version, at your option.
# Debugging
set -x
set -o nounset
#set -o errexit
# Basic system info
uname -a
pwd
ls -l
echo "VIM_EXE: $VIM_EXE"
set
# If it's already been loaded from the cache, we're done
if [[ -x "$VIM_EXE" ]]; then
echo Vim found in cache at "$VIM_EXE"
exit 0
fi
# Otherwise, clone and build it
WHITHER="$APPVEYOR_BUILD_FOLDER/vim"
git clone https://github.com/vim/vim-appimage.git
cd vim-appimage
git submodule update --init --recursive
cd vim/src
./configure --with-features=huge --prefix="$WHITHER" --enable-fail-if-missing
make -j2 # Free tier provides two cores
make install
./vim --version
cd $APPVEYOR_BUILD_FOLDER
find . -type f -name vim -exec ls -l {} +
echo Done fetching and installing vim