update-vim-docs 518 B

123456789101112131415161718192021222324252627
  1. #!/usr/bin/env bash
  2. set -e
  3. set -x
  4. tmpdir=$(mktemp -d)
  5. python3 -m venv ${tmpdir}/env
  6. source ${tmpdir}/env/bin/activate
  7. if [ -z "$1" ]; then
  8. git clone https://github.com/ycm-core/vim-tools ${tmpdir}/vim-tools
  9. TOOLS=${tmpdir}/vim-tools
  10. else
  11. TOOLS="$1"
  12. fi
  13. pip install -r ${TOOLS}/requirements.txt
  14. pushd $(dirname $0)
  15. python3 ${TOOLS}/html2vimdoc.py -f youcompleteme \
  16. README.md \
  17. > doc/youcompleteme.txt
  18. popd
  19. deactivate
  20. rm -rf ${tmpdir}