You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
732 B
Bash
21 lines
732 B
Bash
#!/bin/bash
|
|
|
|
rm ./**/*.elc
|
|
rm *.elc
|
|
|
|
for file in ./*.el; do
|
|
echo 'Compiling '"$file"' ...'
|
|
cask emacs -batch -L . --eval '(progn '"(require 'comp)"' (setq byte-compile-error-on-warn t native-compile-target-directory (car native-comp-eln-load-path)) (nreverse native-comp-eln-load-path))' -f batch-byte+native-compile "$file" || break
|
|
done
|
|
|
|
for file in ./**/*.el; do
|
|
echo 'Compiling '"$file"' ...'
|
|
cask emacs -batch -L . --eval '(progn '"(require 'comp)"' (setq byte-compile-error-on-warn t native-compile-target-directory (car native-comp-eln-load-path)) (nreverse native-comp-eln-load-path))' -f batch-byte+native-compile "$file" || break
|
|
done
|
|
|
|
|
|
if [[ -z $NO_REMOVE_ELC ]]; then
|
|
rm ./**/*.elc
|
|
rm *.elc
|
|
fi
|