#!/bin/zsh
cd ~/tmp/vim/vim
# make clean
./configure --with-features=huge --disable-gui
make -j5
hg revert --no-backup --all
cd ~/tmp/vim
rm -rf bad
function VimBeta()
{
    VIMRUNTIME=$HOME/tmp/vim/vim/runtime $HOME/tmp/vim/vim/src/vim $@
}
VimBeta -u NONE -S test-filereadable.vim
if test -e bad ; then
    exit 1
    rm -rf bad
fi
# make clean
exit 0
