my-emacs-d/recompile-files.sh
2016-10-04 11:42:34 +02:00

22 lines
306 B
Bash
Executable File

#! /bin/sh
cd `dirname $0`
pwd=`pwd`
for file in `find -iname '*.elc'`
do
elc=`basename "$file"`
el="${elc%c}"
cd `dirname "$file"`
if test "$elc" -ot "$el"
then
echo "Recompiling ${el}"
emacs --batch --eval '(byte-compile-file "'${el}'")'
fi
cd $pwd
done