;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
+;; batch mode doesn't do package-initialize, so we need to call it to
+;; setup the load-path for dash
+
+(setq force (getenv "FORCE_RECOMPILE"))
+(package-initialize)
(require 'dash)
+;; i was using git versions of gnus & bbdb and they
+;; needed to run make instead of just byte compile the dir.
+;; I'm not anymore, but leaving this in case I do or there
+;; are similar packages.
(cd "~/.emacs.d/src")
(--map (when (and (not (string= it "gnus"))
(not (string= it "bbdb"))
+ (not (string= it "."))
+ (not (string= it ".."))
(file-directory-p it))
- (byte-recompile-directory (expand-file-name it) 0 t))
+ (byte-recompile-directory (expand-file-name it) 0 force))
(directory-files "."))
-(byte-recompile-directory (expand-file-name "~/.emacs.d/elpa") 0 t)
-(byte-recompile-file (expand-file-name "~/.emacs.d/my-init.el") t)
+(byte-recompile-directory (expand-file-name "~/.emacs.d/elpa") 0 force)
+(byte-recompile-file (expand-file-name "~/.emacs.d/my-init.el") force)