#!/bin/sh which emacs >/dev/null || exit cd "$HOME/.emacs.d" if [ -f bytecompiled-against ]; then last=$(cat bytecompiled-against) fi now=$(emacs --version) echo "$now" >bytecompiled-against # Ensure that everything gets recompiled if version of Emacs has # changed, as definitions of macros may have changed. If # ~/.emacs.d/*.el start using macros from third party packages, should # extend this logic to recompile when installations of those change, # as Debian's emacsen-common infrastructure does if [ "$last" = "$now" ]; then make else make -B fi