Fix .elc recompile script
This commit is contained in:
parent
9bfbbd79d8
commit
6f1a4b796d
@ -1,15 +1,20 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
|
cd `dirname $0`
|
||||||
pwd=`pwd`
|
pwd=`pwd`
|
||||||
|
|
||||||
for file in `find -iname '*.elc'`
|
for file in `find -iname '*.elc'`
|
||||||
do
|
do
|
||||||
|
elc=`basename "$file"`
|
||||||
|
el="${elc%c}"
|
||||||
|
|
||||||
cd `dirname "$file"`
|
cd `dirname "$file"`
|
||||||
|
|
||||||
if test $file -ot ${file%c}
|
if test "$elc" -ot "$el"
|
||||||
then
|
then
|
||||||
echo "Recompiling ${file%c}"
|
echo "Recompiling ${el}"
|
||||||
emacs --batch --eval '(byte-compile-file "'${file%c}'")'
|
|
||||||
|
emacs --batch --eval '(byte-compile-file "'${el}'")'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $pwd
|
cd $pwd
|
||||||
|
Loading…
Reference in New Issue
Block a user