sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[[SM-Commit] ] GIT changes to master grimoire by Pavel Vinogradov (aa68aa511a24fe35df455daf18d878c6e5bff1fc)
- From: Pavel Vinogradov <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org, sm-commit AT lists.sourcemage.org
- Subject: [[SM-Commit] ] GIT changes to master grimoire by Pavel Vinogradov (aa68aa511a24fe35df455daf18d878c6e5bff1fc)
- Date: Tue, 3 Sep 2024 17:24:57 +0000
GIT changes to master grimoire by Pavel Vinogradov <public AT sourcemage.org>:
wm-addons/aquamarine/HISTORY | 3 +++
wm-addons/aquamarine/UP_TRIGGERS | 16 ++++++++++++++++
2 files changed, 19 insertions(+)
New commits:
commit aa68aa511a24fe35df455daf18d878c6e5bff1fc
Author: Pavel Vinogradov <public AT sourcemage.org>
Commit: Pavel Vinogradov <public AT sourcemage.org>
wm-addons/aquamarine: added UP_TRIGGERS to handle ABI incompatible updates
diff --git a/wm-addons/aquamarine/HISTORY b/wm-addons/aquamarine/HISTORY
index b25284a..044a7ae 100644
--- a/wm-addons/aquamarine/HISTORY
+++ b/wm-addons/aquamarine/HISTORY
@@ -1,3 +1,6 @@
+2024-09-03 Pavel Vinogradov <public AT sourcemage.org>
+ * UP_TRIGGERS: added to handle ABI incompatible updates
+
2024-09-02 Pavel Vinogradov <public AT sourcemage.org>
* DETAILS: version 0.4.0
diff --git a/wm-addons/aquamarine/UP_TRIGGERS
b/wm-addons/aquamarine/UP_TRIGGERS
new file mode 100755
index 0000000..80847df
--- /dev/null
+++ b/wm-addons/aquamarine/UP_TRIGGERS
@@ -0,0 +1,16 @@
+# up_trigger everything on major/minor version updates
+
+if spell_ok "${SPELL}"; then
+ local OLD_SPELL_VERSION="$(installed_version ${SPELL})" &&
+
+ if test "${VERSION%.?}" != "${OLD_SPELL_VERSION%.?}"; then
+ message "${MESSAGE_COLOR}This is a possibly incompatible update of
${SPELL}..." &&
+ message "Figuring out what spells need to be recast, this may take a
while.${DEFAULT_COLOR}" &&
+
+ local dependees="$(show_up_depends ${SPELL} 1)" &&
+
+ for each in ${dependees}; do
+ up_trigger "${each}" cast_self
+ done
+ fi
+fi
- [[SM-Commit] ] GIT changes to master grimoire by Pavel Vinogradov (aa68aa511a24fe35df455daf18d878c6e5bff1fc), Pavel Vinogradov, 09/03/2024
Archive powered by MHonArc 2.6.24.