summaryrefslogtreecommitdiffstats
path: root/crypto/libressl/UP_TRIGGERS
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/libressl/UP_TRIGGERS')
-rwxr-xr-xcrypto/libressl/UP_TRIGGERS10
1 files changed, 10 insertions, 0 deletions
diff --git a/crypto/libressl/UP_TRIGGERS b/crypto/libressl/UP_TRIGGERS
new file mode 100755
index 0000000000..5e5a48a6df
--- /dev/null
+++ b/crypto/libressl/UP_TRIGGERS
@@ -0,0 +1,10 @@
+# this makes ABI changes automatically cast those that depend on libressl via an up_trigger
+
+spell_ok $SPELL && local OLD_SPELL_VERSION="$(installed_version $SPELL)" || return 0
+
+if [ "${VERSION/[a-z]*/}" != "${OLD_SPELL_VERSION/[a-z]*/}" ] || \
+ [ "${VERSION%.*}" != "${OLD_SPELL_VERSION%.*}" ]; then
+ for each in $(show_up_depends $SPELL 1); do
+ up_trigger $each cast_self
+ done
+fi