diff options
| author | Adam Stankiewicz <sheerun@sher.pl> | 2020-08-23 23:35:05 +0200 | 
|---|---|---|
| committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-08-23 23:35:05 +0200 | 
| commit | 23defeb61028e25369f54bad521c8948a03f15ba (patch) | |
| tree | ed0896531b2501e342ad44776758e8c6bc73a899 /scripts/test | |
| parent | 114a93bb7c73443d4d0caf9bd9c1875bb96d9d62 (diff) | |
| download | vim-polyglot-23defeb61028e25369f54bad521c8948a03f15ba.tar.gz vim-polyglot-23defeb61028e25369f54bad521c8948a03f15ba.zip | |
fix: Migrate build script to ruby
Diffstat (limited to 'scripts/test')
| -rwxr-xr-x | scripts/test | 19 | 
1 files changed, 19 insertions, 0 deletions
| diff --git a/scripts/test b/scripts/test new file mode 100755 index 00000000..853d34b4 --- /dev/null +++ b/scripts/test @@ -0,0 +1,19 @@ +#!/bin/bash + +set -e + +vim -N --startuptime /dev/stdout -u <( +  echo "filetype plugin indent on" +  echo "syntax enable" +  echo "let &rtp='$PWD,'.&rtp" +  cat ftdetect/polyglot.vim | grep -E 'set ft=[a-z-]+' -o | sort | uniq | awk -F '=' '{ print $2 }' | while read ft; do +    echo "try" +    echo "  enew" +    echo "  set ft=$ft" +    echo "catch" +    echo "  echo v:exception" +    echo "  exec ':cq!'" +    echo "endtry" +  done +  echo "exec ':q!'" +) | 
