#!/bin/sh # Portage installs and updates mago, so refuse mago self-update, which would # overwrite it. self-update --check still reports new releases. case " $* " in *" self-update "*) case " $* " in *" --check "* | *" -c "*) ;; *) echo 'Portage installed this Mago: update it with `emerge --update dev-util/mago-bin`.' >&2 exit 1 ;; esac ;; esac exec /usr/libexec/mago-bin/mago "$@"