Skip to content

Commit

Permalink
Experimental: build tree-grepper
Browse files Browse the repository at this point in the history
  • Loading branch information
rtfb committed Apr 15, 2024
1 parent efcfa92 commit a91e2ae
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
12 changes: 10 additions & 2 deletions apt-get-on-clean-box.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,16 @@ usermod -aG dialout $USER
if ! command -v jump &> /dev/null
then
echo "jump not found, installing..."
wget -O /tmp/jump_0.30.1_amd64.deb https://github.com/gsamokovarov/jump/releases/download/v0.30.1/jump_0.30.1_amd64.deb
wget -O /tmp/jump_0.30.1_amd64.deb \
https://github.com/gsamokovarov/jump/releases/download/v0.30.1/jump_0.30.1_amd64.deb
dpkg -i /tmp/jump_0.30.1_amd64.deb
fi

if ! command -v glow &> /dev/null
then
echo "glow not found, installing..."
wget -O /tmp/glow_1.4.1_linux_amd64.deb https://github.com/charmbracelet/glow/releases/download/v1.4.1/glow_1.4.1_linux_amd64.deb
wget -O /tmp/glow_1.4.1_linux_amd64.deb \
https://github.com/charmbracelet/glow/releases/download/v1.4.1/glow_1.4.1_linux_amd64.deb
dpkg -i /tmp/glow_1.4.1_linux_amd64.deb
fi

Expand All @@ -65,3 +67,9 @@ if ! [ -d ~/.dropbox-dist ] && [ "$(hostname)" == "dungeon" ]; then
cd ~
su rtfb -c "wget -O - \"https://www.dropbox.com/download?plat=lnx.x86_64\" | tar xzf -"
fi

if ! command -v tree-grepper &> /dev/null
then
echo "tree-grepper not found, installing..."
./build-tree-grepper.sh
fi
31 changes: 31 additions & 0 deletions build-tree-grepper.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/bash

rm -rf /tmp/tree-grepper
mkdir -p /tmp/tree-grepper
git clone [email protected]:BrianHicks/tree-grepper.git /tmp/tree-grepper
mkdir -p /tmp/tree-grepper/vendor
cd /tmp/tree-grepper/vendor

# this set is from flake.nix:
git clone [email protected]:elixir-lang/tree-sitter-elixir
git clone [email protected]:elm-tooling/tree-sitter-elm
git clone [email protected]:tree-sitter/tree-sitter-cpp
git clone [email protected]:tree-sitter/tree-sitter-haskell
git clone [email protected]:tree-sitter/tree-sitter-javascript
git clone [email protected]:tree-sitter/tree-sitter-php
git clone [email protected]:tree-sitter/tree-sitter-ruby
git clone [email protected]:tree-sitter/tree-sitter-rust
git clone [email protected]:tree-sitter/tree-sitter-typescript

# this set was added one by one based on build errors:
git clone [email protected]:nix-community/tree-sitter-nix
git clone [email protected]:tree-sitter-grammars/tree-sitter-cuda
git clone [email protected]:tree-sitter-grammars/tree-sitter-markdown
git clone [email protected]:tree-sitter-grammars/tree-sitter-scss
git clone [email protected]:tree-sitter/tree-sitter-c
git clone [email protected]:tree-sitter/tree-sitter-go
git clone [email protected]:tree-sitter/tree-sitter-java
git clone [email protected]:tree-sitter/tree-sitter-python

cd /tmp/tree-grepper
cargo install --path .

0 comments on commit a91e2ae

Please sign in to comment.