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

23 lines
321 B
Bash
Executable File

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