aboutsummaryrefslogtreecommitdiff
path: root/misc/bin/clean-elc-compile
diff options
context:
space:
mode:
Diffstat (limited to 'misc/bin/clean-elc-compile')
-rwxr-xr-xmisc/bin/clean-elc-compile10
1 files changed, 10 insertions, 0 deletions
diff --git a/misc/bin/clean-elc-compile b/misc/bin/clean-elc-compile
new file mode 100755
index 0000000..7abccf8
--- /dev/null
+++ b/misc/bin/clean-elc-compile
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+# Byte compile an elisp dir with a "clean" emacs
+for f in "$1"/*.el; do
+ emacs --batch \
+ --eval "(setq load-prefer-newer t)" \
+ -f package-initialize \
+ -L "$1" \
+ -f batch-byte-compile "$f"
+done