+ echo "already compiled"
+ installed_info=$(file $(readlink -f $(type -P emacs)))
+ build_info=$(file $dir/src/emacs)
+ if [[ $installed_info == "$build_info" ]]; then
+ echo "already installed exiting"
+ # this isn't perfect, because install could partially fail or the
+ # command after it could
+ exit 0
+ fi