# up_trigger stuff that still uses libungif so it's not broken afterwards

if spell_ok  libungif; then
  message "Switching from libungif to libgif requires recompiling spells using libungif..."
  message "Figuring out what spells need to be recast, this may take a while."
  for each in $(show_up_depends libungif); do
    if gaze install $each | xargs readelf -d 2> /dev/null |
       grep -q "NEEDED.*libungif"; then
         up_trigger $each cast_self
    fi
  done
fi
