X-Git-Url: https://iankelling.org/git/?p=buildscripts;a=blobdiff_plain;f=emacs;h=b2c97406a9c12f44c032806cbf2a5116fa70555a;hp=01a66005036402d2b71a0564e07462630a93ad36;hb=HEAD;hpb=f898fa23c5a5f455bf300fb48e57641e290334fb diff --git a/emacs b/emacs index 01a6600..5fe4e2f 100755 --- a/emacs +++ b/emacs @@ -112,8 +112,15 @@ if [[ -e $dir ]]; then rev=$(cat $last_build 2>/dev/null) ||: head=$(git rev-parse HEAD) if ! $recompile && ! $bootstrap && [[ $rev == "$head" ]]; then - echo "already compiled, exiting" - exit 0 + 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 fi if [[ $rev != "$head" ]]; then bootstrap=true