2016-10-03 15:34:11 +00:00
|
|
|
#! /bin/sh
|
|
|
|
|
2016-10-04 09:42:34 +00:00
|
|
|
cd `dirname $0`
|
2016-10-03 15:34:11 +00:00
|
|
|
pwd=`pwd`
|
|
|
|
|
|
|
|
for file in `find -iname '*.elc'`
|
|
|
|
do
|
2016-10-04 09:42:34 +00:00
|
|
|
elc=`basename "$file"`
|
|
|
|
el="${elc%c}"
|
2016-10-11 07:42:34 +00:00
|
|
|
dir=`dirname "$file"`
|
2016-10-04 09:42:34 +00:00
|
|
|
|
2016-10-11 07:42:34 +00:00
|
|
|
cd "$dir"
|
2016-10-03 15:34:11 +00:00
|
|
|
|
2016-10-04 09:42:34 +00:00
|
|
|
if test "$elc" -ot "$el"
|
2016-10-03 15:34:11 +00:00
|
|
|
then
|
2016-10-04 09:42:34 +00:00
|
|
|
echo "Recompiling ${el}"
|
|
|
|
|
|
|
|
emacs --batch --eval '(byte-compile-file "'${el}'")'
|
2016-10-03 15:34:11 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
cd $pwd
|
|
|
|
done
|