a script to auto link a plugin, or update its links
fix update-hook.sh, and autogenerate everything