Compare commits

...

3 commits

4 changed files with 45 additions and 0 deletions

3
.gitmodules vendored
View file

@ -544,6 +544,9 @@
[submodule "starlark-rust"] [submodule "starlark-rust"]
path = starlark-rust path = starlark-rust
url = ssh://aur@aur.archlinux.org/starlark-rust.git url = ssh://aur@aur.archlinux.org/starlark-rust.git
[submodule "tailwindcss"]
path = tailwindcss
url = ssh://aur@aur.archlinux.org/tailwindcss.git
[submodule "tern"] [submodule "tern"]
path = tern path = tern
url = ssh://aur@aur.archlinux.org/tern.git url = ssh://aur@aur.archlinux.org/tern.git

View file

@ -121,6 +121,12 @@ exclude_regex = "^.*(alpha|beta|rc).*$"
# github # github
[tailwindcss]
source = "github"
github = "tailwindlabs/tailwindcss"
use_max_tag = true
prefix = "v"
[angband] [angband]
source = "github" source = "github"
github = "angband/angband" github = "angband/angband"
@ -1287,6 +1293,10 @@ pypi = "pytest-check"
#source = "cmd" #source = "cmd"
#cmd = './.repo/pkgver/firefox-nightly-en-gb.sh' #cmd = './.repo/pkgver/firefox-nightly-en-gb.sh'
[oil]
source = "cmd"
cmd = "./.repo/pkgver/oil.sh"
[enigma] [enigma]
source = "cmd" source = "cmd"
cmd = "./.repo/pkgver/enigma.sh" cmd = "./.repo/pkgver/enigma.sh"

31
.repo/pkgver/oil.sh Executable file
View file

@ -0,0 +1,31 @@
#!/bin/bash
set -e
# check dependencies
count=0
for dependency in curl hxnormalize hxselect grep sed; do
if [ ! -x "$(command -v $dependency)" ]; then
echo "$dependency missing"
count=$((count+1))
fi
done
# exit script if any dependencies missing
if [ $count -ne 0 ]; then
exit 1
fi
# upstream URL
UPSTREAM_URL="https://www.oilshell.org/release/latest/"
# options to pass to cURL, including custom user agent
USER_AGENT="oil-version-checker/1.0 george@rawlinson.net.nz"
CURL_OPTS=(--silent --user-agent "$USER_AGENT")
curl "${CURL_OPTS[@]}" "$UPSTREAM_URL" | \
hxnormalize -x | \
hxselect -c 'a' -s '\n' | \
grep '.tar.gz' | \
sed -e "s/^oil-//" -e "s/\.tar.gz$//"
exit 0

1
tailwindcss Submodule

@ -0,0 +1 @@
Subproject commit 0c7638771cb1535e2a715ab2680609011853acbe