X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lisp%2Fupdate-elc.el;h=c27378ede141b62c76f6f0df1407c6347d1ba4a9;hb=8b6a943578dd26817b7514ccb0c19119c314ec60;hp=d9c33c8ab3357bcc5188405fbb3beefa29ee4089;hpb=a1655b870904de973c366d85ebdc8adde4ef5e1e;p=chise%2Fxemacs-chise.git- diff --git a/lisp/update-elc.el b/lisp/update-elc.el index d9c33c8..c27378e 100644 --- a/lisp/update-elc.el +++ b/lisp/update-elc.el @@ -115,14 +115,18 @@ (if (string-match "\\.elc?\\'" arg) (substring arg 0 (match-beginning 0)) arg))) - (if (and dumped-exe - (or (and (file-exists-p (concat frob ".el")) - (file-newer-than-file-p (concat frob ".el") - dumped-exe)) - (and (file-exists-p (concat frob ".elc")) - (file-newer-than-file-p (concat frob ".elc") - dumped-exe)))) - (setq need-to-dump t))) + (when (and dumped-exe + (or (and (file-exists-p + (concat "../lisp/" frob ".el")) + (file-newer-than-file-p + (concat "../lisp/" frob ".el") + dumped-exe)) + (and (file-exists-p + (concat "../lisp/" frob ".elc")) + (file-newer-than-file-p + (concat "../lisp/" frob ".elc") + dumped-exe)))) + (setq need-to-dump t))) (if (null (member (file-name-nondirectory arg) packages-unbytecompiled-lisp))