File: update-vim-docs

package info (click to toggle)
vim-youcompleteme 0%2B20230109%2Bgit7620d87%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,404 kB
  • sloc: python: 10,569; sh: 203; cpp: 121; makefile: 24; f90: 5; xml: 1
file content (27 lines) | stat: -rwxr-xr-x 518 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env bash

set -e
set -x

tmpdir=$(mktemp -d)
python3 -m venv ${tmpdir}/env
source ${tmpdir}/env/bin/activate

if [ -z "$1" ]; then
  git clone https://github.com/ycm-core/vim-tools ${tmpdir}/vim-tools
  TOOLS=${tmpdir}/vim-tools
else
  TOOLS="$1"
fi

pip install -r ${TOOLS}/requirements.txt

pushd $(dirname $0)
  python3 ${TOOLS}/html2vimdoc.py -f youcompleteme \
                                   README.md \
                                   > doc/youcompleteme.txt
popd

deactivate

rm -rf ${tmpdir}