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