-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b7eccf4
commit 9d097b0
Showing
8 changed files
with
81 additions
and
312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
tree-sitter-version = "0.22.6" | ||
|
||
[parsers] | ||
bash = "7331995b19b8f8aba2d5e26deb51d2195c18bc94" | ||
c = "212a80f86452bb1316324fa0db730cf52f29e05a" | ||
cobol = { ref = "c7a36d749e7f1db021588259f2b1b765e59d0c12", from = "https://github.com/yutaro-sakamoto/tree-sitter-cobol" } | ||
embedded-template = "203f7bd3c1bbfbd98fc19add4b8fcb213c059205" | ||
html = "949b78051835564bca937565241e5e337d838502" | ||
java = "953abfc8bb3eb2f578e1f461edba4a9885f974b8" | ||
javascript = "4928d3d18019a848906855476fde2dc8be030217" | ||
json = "3fef30de8aee74600f25ec2e319b62a1a870d51e" | ||
php = "575a0801f430c8672db70b73493c033a9dcfc328" | ||
python = "82f5c9937fe4300b4bec3ee0e788d642c77aab2c" | ||
ruby = "788a63ca1b7619288980aaafd37d890ee2469421" | ||
rust = "9c84af007b0f144954adb26b3f336495cbb320a7" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# /usr/bin/env bash | ||
set -euo pipefail | ||
IFS=$'\n\t' | ||
set -vx | ||
|
||
arch=$(dpkg-architecture -q DEB_BUILD_ARCH) | ||
version_num=$(git describe --tags --abbrev=0 | sed -E 's/v([0-9]+\.[0-9]+)/\1/') | ||
commit_count=$(git rev-list --count --first-parent HEAD) | ||
|
||
version="$version_num.$commit_count" | ||
echo | ||
|
||
pkg='tree-sitter-parsers' | ||
pkg_name="$pkg-$version_num-$arch" | ||
rm -rf "$pkg" | ||
|
||
debian="$pkg/DEBIAN" | ||
mkdir -p "$debian" | ||
|
||
dst="$pkg/usr/local/lib" | ||
mkdir -p "$dst" | ||
|
||
cat <<-EOF > "$debian/control" | ||
Package: $pkg | ||
Version: $version | ||
Architecture: $arch | ||
Maintainer: Firas al-Khalil <firas.al-khalil@faveod.com> | ||
Description: A bunch of tree-sitter parsers. | ||
EOF | ||
|
||
cp "lib/$PLATFORM/*.so" "$dst" | ||
|
||
zip "lib/$pkg_name.zip" "$dst/*" | ||
tar -cvzf "lib/$pkg_name.tar.gz" "$dst/*" | ||
|
||
if test "$(uname)" = "Linux" && test -f /etc/lsb-release && grep -q "Ubuntu" /etc/lsb-release; then | ||
dpkg-deb -Z none --build "$pkg" "lib/$pkg_name.deb" | ||
fi |
Oops, something went wrong.