summarylogtreecommitdiffstats
path: root/find_latest_version.sh
diff options
context:
space:
mode:
authorXiretza2021-01-27 16:25:51 +0100
committerXiretza2021-01-27 16:25:51 +0100
commit1fe7112846674087fec0c335bbd6d920c108d67a (patch)
treee0b7e12717eb0b04108120314dedf975c9904391 /find_latest_version.sh
parentfcb0afb7a40201ba128aa17a287a01a3c1fa6781 (diff)
downloadaur-1fe7112846674087fec0c335bbd6d920c108d67a.tar.gz
Add script to find latest snapshot version
Diffstat (limited to 'find_latest_version.sh')
-rwxr-xr-xfind_latest_version.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/find_latest_version.sh b/find_latest_version.sh
new file mode 100755
index 000000000000..dd892ed18718
--- /dev/null
+++ b/find_latest_version.sh
@@ -0,0 +1,4 @@
+#!/usr/bin/bash
+
+curl --silent https://storage.googleapis.com/symbiflow-arch-defs-gha/symbiflow-toolchain-latest \
+ | sed -E 's.%2F./.g; s#.*/install/([0-9]+)/([0-9-]+)/[^/]+-([0-9a-f]+)\.tar\.xz.*#_buildnum=\1\n_builddate=\2\n_commit=\3\n#'