#!/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