lint
This commit is contained in:
parent
7a3602378f
commit
e9b420dba5
|
@ -104,12 +104,12 @@ $client = new-object System.Net.WebClient
|
||||||
cd c:\treesitter
|
cd c:\treesitter
|
||||||
|
|
||||||
if ($bits -eq 32) {
|
if ($bits -eq 32) {
|
||||||
$client.DownloadFile("https://github.com/tree-sitter/tree-sitter/releases/download/0.15.9/tree-sitter-windows-x86.gz","c:\treesitter\tree-sitter-cli.gz")
|
$client.DownloadFile("https://github.com/tree-sitter/tree-sitter/releases/download/0.15.9/tree-sitter-windows-x86.gz", "c:\treesitter\tree-sitter-cli.gz")
|
||||||
}
|
}
|
||||||
elseif ($bits -eq 64) {
|
elseif ($bits -eq 64) {
|
||||||
$client.DownloadFile("https://github.com/tree-sitter/tree-sitter/releases/download/0.15.9/tree-sitter-windows-x64.gz","c:\treesitter\tree-sitter-cli.gz")
|
$client.DownloadFile("https://github.com/tree-sitter/tree-sitter/releases/download/0.15.9/tree-sitter-windows-x64.gz", "c:\treesitter\tree-sitter-cli.gz")
|
||||||
}
|
}
|
||||||
python -c "import gzip, shutil; f1,f2 = gzip.open('tree-sitter-cli.gz', 'rb'), open('tree-sitter.exe', 'wb'); shutil.copyfileobj(f1, f2); f2.close()"
|
python -c "import gzip, shutil; f1,f2 = gzip.open('tree-sitter-cli.gz', 'rb'), open('tree-sitter.exe', 'wb'); shutil.copyfileobj(f1, f2); f2.close()"
|
||||||
|
|
||||||
$client.DownloadFile("https://codeload.github.com/tree-sitter/tree-sitter-c/zip/v0.15.2","c:\treesitter\tree_sitter_c.zip")
|
$client.DownloadFile("https://codeload.github.com/tree-sitter/tree-sitter-c/zip/v0.15.2","c:\treesitter\tree_sitter_c.zip")
|
||||||
Expand-Archive c:\treesitter\tree_sitter_c.zip -DestinationPath c:\treesitter\
|
Expand-Archive c:\treesitter\tree_sitter_c.zip -DestinationPath c:\treesitter\
|
||||||
|
|
|
@ -34,7 +34,7 @@ curl "https://codeload.github.com/tree-sitter/tree-sitter-c/tar.gz/v0.15.2" -o t
|
||||||
tar xf tree_sitter_c.tar.gz
|
tar xf tree_sitter_c.tar.gz
|
||||||
cd tree-sitter-c-0.15.2
|
cd tree-sitter-c-0.15.2
|
||||||
export TREE_SITTER_DIR=$HOME/tree-sitter-build/
|
export TREE_SITTER_DIR=$HOME/tree-sitter-build/
|
||||||
mkdir -p $TREE_SITTER_DIR/bin
|
mkdir -p "$TREE_SITTER_DIR/bin"
|
||||||
|
|
||||||
if [[ "$BUILD_32BIT" != "ON" ]]; then
|
if [[ "$BUILD_32BIT" != "ON" ]]; then
|
||||||
# builds c parser in $HOME/tree-sitter-build/bin/c.(so|dylib)
|
# builds c parser in $HOME/tree-sitter-build/bin/c.(so|dylib)
|
||||||
|
@ -42,5 +42,5 @@ if [[ "$BUILD_32BIT" != "ON" ]]; then
|
||||||
else
|
else
|
||||||
# no tree-sitter binary for 32bit linux, so fake it (no tree-sitter unit tests)
|
# no tree-sitter binary for 32bit linux, so fake it (no tree-sitter unit tests)
|
||||||
cd src/
|
cd src/
|
||||||
gcc -m32 -o $TREE_SITTER_DIR/bin/c.so -shared parser.c -I.
|
gcc -m32 -o "$TREE_SITTER_DIR/bin/c.so" -shared parser.c -I.
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue