add byte-compile helper
[emacs.git] / bin / byte-compile
1 #!/bin/bash
2
3 set -e
4 set -u
5 set -E
6
7 EC=emacsclient
8
9 DIR=${1:-"${HOME}/elisp/local"}
10 cd ${DIR}
11
12 find -type f -name "*.elc" -delete
13
14 for file in $(find -type f -name "*.el"); do
15 echo -n "${file} ... "
16 ${EC} --eval "(byte-compile-file \"${file}\")"
17 done