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.
20 lines
457 B
Bash
20 lines
457 B
Bash
1 year ago
|
#!/bin/bash
|
||
|
|
||
1 year ago
|
rm ./**/*.elc
|
||
|
rm *.elc
|
||
|
|
||
1 year ago
|
for file in ./*.el; do
|
||
1 year ago
|
echo 'Compiling '"$file"' ...'
|
||
1 year ago
|
cask emacs -batch -L . --eval '(setq byte-compile-error-on-warn t)' -f batch-byte-compile "$file" || break
|
||
|
done
|
||
|
|
||
1 year ago
|
for file in ./**/*.el; do
|
||
1 year ago
|
echo 'Compiling '"$file"' ...'
|
||
1 year ago
|
cask emacs -batch -L . --eval '(setq byte-compile-error-on-warn t)' -f batch-byte-compile "$file" || break
|
||
1 year ago
|
done
|
||
|
|
||
1 year ago
|
if [[ -z $NO_REMOVE_ELC ]]; then
|
||
1 year ago
|
rm ./**/*.elc
|
||
|
rm *.elc
|
||
1 year ago
|
fi
|