diff options
author | Glenn Morris <rgm@gnu.org> | 2008-05-31 02:24:12 +0000 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2008-05-31 02:24:12 +0000 |
commit | 10498e1c2c5ade6553dfe5b19c0f79f18a613eac (patch) | |
tree | 7c48dd3040874181c6b96f50ff8c5bbe3306580d /lisp | |
parent | d0827857e7a2e73907783ccb6e30849c2a056374 (diff) | |
download | emacs-10498e1c2c5ade6553dfe5b19c0f79f18a613eac.tar.gz |
(compile-last): Replace tr in `els' assignment with sed. Remove shell
variable `elc'. Split tests to hopefully be more portable. Fix `sel'
assignment.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/ChangeLog | 6 | ||||
-rw-r--r-- | lisp/Makefile.in | 20 |
2 files changed, 15 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index dad37a47ea4..6c2047a70bd 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2008-05-31 Glenn Morris <rgm@gnu.org> + + * Makefile.in (compile-last): Replace tr in `els' assignment with sed. + Remove shell variable `elc'. Split tests to hopefully be more portable. + Fix `sel' assignment. + 2008-05-30 Juanma Barranquero <lekktu@gmail.com> * minibuffer.el (completion-table-dynamic): Doc fix. diff --git a/lisp/Makefile.in b/lisp/Makefile.in index c8d7395c9de..3d342d1636e 100644 --- a/lisp/Makefile.in +++ b/lisp/Makefile.in @@ -89,7 +89,7 @@ setwins=subdirs=`(cd $$wd; find . -type d -print)`; \ esac; \ done -# Find all subdirectories except `obsolete'. +# Find all subdirectories except `obsolete' and `term'. setwins_almost=subdirs=`(cd $$wd; find . -type d -print)`; \ for file in $$subdirs; do \ @@ -1271,17 +1271,15 @@ compile-always: doit ## In case any files are missing from ELCFILES. compile-last: @wd=$(lisp); $(setwins); \ - els=`echo $$wins | tr ' \011' '\012\012' | \ - sed -e 's|\(.\)$$|\1/|' -e 's|^\./||' -e 's|$$|*.el|'`; \ + els=`echo "$$wins " | sed -e 's|/\./|/|g' -e 's|/\. | |g' -e 's| |/*.el |g'`; \ for el in $(COMPILE_FIRST) $$els; do \ - elc=$${el}c; \ - if test -f $$el && ! test -f $$elc && \ - ! grep 'no-byte-compile: t' $$el > /dev/null; then \ - sel=`echo $el | sed "s|^$$lisp|\$$(lisp)|"`; \ - echo "Maintainer warning: $$sel missing from \$$ELCFILES?"; \ - echo "Compiling $$el"; \ - $(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $$el || exit 1; \ - fi \ + test -f $$el || continue; \ + test -f $${el}c && continue; \ + grep 'no-byte-compile: t' $$el > /dev/null && continue; \ + sel=`echo $$el | sed "s|^$(lisp)|\\$$(lisp)|"`; \ + echo "Maintainer warning: $$sel missing from \$$ELCFILES?"; \ + echo "Compiling $$el"; \ + $(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $$el || exit 1; \ done compile-calc: |