blob: 43d847222c9337d11b1c30f54f6c498e81b0315f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/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
|