summaryrefslogtreecommitdiffstats
path: root/graphics-libs/giflib5/UP_TRIGGERS
diff options
context:
space:
mode:
Diffstat (limited to 'graphics-libs/giflib5/UP_TRIGGERS')
-rwxr-xr-xgraphics-libs/giflib5/UP_TRIGGERS12
1 files changed, 12 insertions, 0 deletions
diff --git a/graphics-libs/giflib5/UP_TRIGGERS b/graphics-libs/giflib5/UP_TRIGGERS
new file mode 100755
index 0000000000..d559a8fbf7
--- /dev/null
+++ b/graphics-libs/giflib5/UP_TRIGGERS
@@ -0,0 +1,12 @@
+# up_trigger stuff that still uses old giflib so it's not broken afterwards
+
+if spell_ok giflib; then
+ message "Switching from giflib to giflib5 requires recompiling spells using giflib"
+ message "Figuring out what spells need to be recast, this may take a while."
+ for each in $(show_up_depends giflib); do
+ if gaze install $each | xargs readelf -d 2> /dev/null |
+ grep -q "NEEDED.*libgif"; then
+ up_trigger $each cast_self
+ fi
+ done
+fi