aboutsummaryrefslogtreecommitdiffstats
path: root/devel/llvm-morello
diff options
context:
space:
mode:
Diffstat (limited to 'devel/llvm-morello')
-rw-r--r--devel/llvm-morello/Makefile.snapshot8
-rw-r--r--devel/llvm-morello/distinfo6
-rw-r--r--devel/llvm-morello/files/gen-Makefile.snapshot.sh45
3 files changed, 54 insertions, 5 deletions
diff --git a/devel/llvm-morello/Makefile.snapshot b/devel/llvm-morello/Makefile.snapshot
index 5c0b881b53b2..7e1be1484d94 100644
--- a/devel/llvm-morello/Makefile.snapshot
+++ b/devel/llvm-morello/Makefile.snapshot
@@ -1,5 +1,9 @@
+# Generated file! Do not edit!
+#
+# Generated by: files/gen-Makefile.snapshot.sh.
+#
LLVM_MAJOR= 17
LLVM_RELEASE= ${LLVM_MAJOR}.0.0
-SNAPDATE= 20250909
+SNAPDATE= 20251023
-LLVM_COMMIT= 0303e6f03ed4aede9d0659d294cdb4e692cadafc
+LLVM_COMMIT= 17f4965c903e0dd94203dbb96ac5d5b931353108
diff --git a/devel/llvm-morello/distinfo b/devel/llvm-morello/distinfo
index 5f7210f6bc4c..909113e39403 100644
--- a/devel/llvm-morello/distinfo
+++ b/devel/llvm-morello/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1757580132
-SHA256 (morello-llvm-project-0303e6f03ed4aede9d0659d294cdb4e692cadafc_GL0.tar.gz) = 02771ccc63f61843822704207bc449f5973b36bf902b691a0a8bff976d9b41f7
-SIZE (morello-llvm-project-0303e6f03ed4aede9d0659d294cdb4e692cadafc_GL0.tar.gz) = 200582857
+TIMESTAMP = 1761233961
+SHA256 (morello-llvm-project-17f4965c903e0dd94203dbb96ac5d5b931353108_GL0.tar.gz) = 621d66a867b8786c446f2ff071cb0d95c3b8b2c26323040541f8ff1edbe0a06c
+SIZE (morello-llvm-project-17f4965c903e0dd94203dbb96ac5d5b931353108_GL0.tar.gz) = 200615918
diff --git a/devel/llvm-morello/files/gen-Makefile.snapshot.sh b/devel/llvm-morello/files/gen-Makefile.snapshot.sh
new file mode 100644
index 000000000000..80b23fb7b218
--- /dev/null
+++ b/devel/llvm-morello/files/gen-Makefile.snapshot.sh
@@ -0,0 +1,45 @@
+#!/bin/sh
+#
+# Simple script to fetch the latest commits via the gitlab API. Requires
+# curl and jq. Uses unauthenticated access.
+
+REPOS_URL=https://git.morello-project.org/api/v4/projects/morello
+MAX_DATE=1970101
+
+tmpfile=`mktemp -t gen-Makefile.snapshot`
+
+query_repo()
+{
+ curl ${REPOS_URL}%2F$1/repository/branches/morello%2Fdev > $tmpfile
+
+ # Accumulate the dates of the last commits to find the snapshot date
+ committime=`jq -r '.commit.committed_date' $tmpfile`
+ committime=${committime%%T*}
+ year=${committime%%-*}
+ month=${committime%-*}
+ month=${month#*-}
+ day=${committime##*-}
+ dateint=${year}${month}${day}
+ if [ $dateint -gt $MAX_DATE ]; then
+ export MAX_DATE=$dateint
+ fi
+
+ SHA=`jq -r '.commit.id' $tmpfile`
+}
+
+query_repo llvm-project
+LLVM_COMMIT=$SHA
+
+cat <<EOF > Makefile.snapshot
+# Generated file! Do not edit!
+#
+# Generated by: files/gen-Makefile.snapshot.sh.
+#
+LLVM_MAJOR= 17
+LLVM_RELEASE= \${LLVM_MAJOR}.0.0
+SNAPDATE= ${MAX_DATE}
+
+LLVM_COMMIT= ${LLVM_COMMIT}
+EOF
+
+rm -f $tmpfile