Mercurial > hg > xemacs-beta
comparison lib-src/update-elc.sh @ 80:1ce6082ce73f r20-0b90
Import from CVS: tag r20-0b90
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:06:37 +0200 |
parents | c7528f8e288d |
children | ac0620f6398e |
comparison
equal
deleted
inserted
replaced
79:5b0a5bbffab6 | 80:1ce6082ce73f |
---|---|
37 # $els is a list of all .el files | 37 # $els is a list of all .el files |
38 # $elcs is a list of all .elc files | 38 # $elcs is a list of all .elc files |
39 els=/tmp/rcl1.$$ ; elcs=/tmp/rcl2.$$ | 39 els=/tmp/rcl1.$$ ; elcs=/tmp/rcl2.$$ |
40 rm -f $els $elcs | 40 rm -f $els $elcs |
41 trap "rm -f $els $elcs" 0 1 2 3 15 | 41 trap "rm -f $els $elcs" 0 1 2 3 15 |
42 find lisp/. -name SCCS -prune -o -name '*.el' -print | sort > $els | 42 find lisp/. $prune_vc -name '*.el' -print | sort > $els |
43 find lisp/. -name SCCS -prune -o -name '*.elc' -print | sed 's/elc$/el/' | sort > $elcs | 43 find lisp/. $prune_vc -name '*.elc' -print | sed 's/elc$/el/' | sort > $elcs |
44 | 44 |
45 | 45 |
46 echo "Deleting .elc files without .el files..." | 46 echo "Deleting .elc files without .el files..." |
47 comm -13 $els $elcs | sed -e '\!/vm.el!d' -e '\!/w3.el!d' -e 's/el$/elc/' | \ | 47 comm -13 $els $elcs | sed -e '\!/vm.el!d' -e '\!/w3.el!d' -e 's/el$/elc/' | \ |
48 while read file ; do echo rm "$file" ; rm "$file" ; done | 48 while read file ; do echo rm "$file" ; rm "$file" ; done |
76 ${MAKE:-make} EMACS=$REAL ${1+$*}); \ | 76 ${MAKE:-make} EMACS=$REAL ${1+$*}); \ |
77 echo \"lisp/$dir done.\";" | 77 echo \"lisp/$dir done.\";" |
78 } | 78 } |
79 | 79 |
80 make_special vm | 80 make_special vm |
81 make_special ediff elc | 81 #make_special ediff elc |
82 make_special viper elc | 82 #make_special viper elc |
83 make_special gnus some | 83 make_special gnus some |
84 make_special w3 | 84 make_special w3 |
85 make_special url # really part of w3 | |
86 make_special hyperbole elc | 85 make_special hyperbole elc |
87 make_special oobr HYPB_ELC='' elc | 86 make_special oobr HYPB_ELC='' elc |
88 make_special eos -k # not stricly necessary... | 87 make_special eos -k # not stricly necessary... |
89 make_special ilisp elc -f Makefile | 88 make_special ilisp elc |
90 | 89 |
91 ignore_pattern='' | 90 ignore_pattern='' |
92 for dir in $ignore_dirs ; do | 91 for dir in $ignore_dirs ; do |
93 ignore_pattern="${ignore_pattern}/\\/$dir\\//d | 92 ignore_pattern="${ignore_pattern}/\\/$dir\\//d |
94 /\\/$dir\$/d | 93 /\\/$dir\$/d |
120 xargs -t -n$NUMTOCOMPILE $BYTECOMP -f batch-byte-compile | 119 xargs -t -n$NUMTOCOMPILE $BYTECOMP -f batch-byte-compile |
121 echo "Compiling files without .elc... Done" | 120 echo "Compiling files without .elc... Done" |
122 | 121 |
123 | 122 |
124 echo "Compiling files with out-of-date .elc..." | 123 echo "Compiling files with out-of-date .elc..." |
125 find lisp/. -name CVS -prune -o -name SCCS -prune -o -type d -print | \ | 124 find lisp/* $prune_vc -type d -print | \ |
126 sed "$ignore_pattern" | \ | 125 sed "$ignore_pattern" | \ |
127 xargs -t $REAL -batch -q -no-site-file -f batch-byte-recompile-directory | 126 xargs -t $BYTECOMP -f batch-byte-recompile-directory |
128 echo "Compiling files with out-of-date .elc... Done" | 127 echo "Compiling files with out-of-date .elc... Done" |
129 | 128 |
130 | 129 |
131 eval "$make_special_commands" | 130 eval "$make_special_commands" |