Mercurial > hg > xemacs-beta
comparison lib-src/update-elc.sh @ 12:bcdc7deadc19 r19-15b7
Import from CVS: tag r19-15b7
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:48:16 +0200 |
parents | ac2d302a0011 |
children | 9ee227acff29 |
comparison
equal
deleted
inserted
replaced
11:91ffe8bd52e4 | 12:bcdc7deadc19 |
---|---|
52 } | 52 } |
53 fi | 53 fi |
54 | 54 |
55 | 55 |
56 REAL=`cd \`dirname $EMACS\` ; pwd | sed 's|^/tmp_mnt||'`/`basename $EMACS` | 56 REAL=`cd \`dirname $EMACS\` ; pwd | sed 's|^/tmp_mnt||'`/`basename $EMACS` |
57 | 57 BYTECOMP="$REAL -batch -q -no-site-file -l bytecomp" |
58 echo "Recompiling in `pwd|sed 's|^/tmp_mnt||'`" | 58 echo "Recompiling in `pwd|sed 's|^/tmp_mnt||'`" |
59 echo " with $REAL..." | 59 echo " with $REAL..." |
60 | 60 |
61 prune_vc="( -name SCCS -o -name RCS -o -name CVS ) -prune -o" | |
61 | 62 |
62 tmp1=/tmp/rcl1.$$ | 63 tmp1=/tmp/rcl1.$$ |
63 tmp2=/tmp/rcl2.$$ | 64 tmp2=/tmp/rcl2.$$ |
64 rm -f $tmp1 $tmp2 | 65 rm -f $tmp1 $tmp2 |
65 | 66 |
66 # tmp1 is a list of all .el files | 67 # tmp1 is a list of all .el files |
67 # tmp2 is a list of all .elc files | 68 # tmp2 is a list of all .elc files |
68 find lisp/. -name SCCS -prune -o -name '*.el' -print | sort > $tmp1 | 69 find lisp/. $prune_vc -name '*.el' -print | sort > $tmp1 |
69 find lisp/. -name SCCS -prune -o -name 'w3.elc' -prune -o -name 'vm.elc' \ | 70 find lisp/. $prune_vc -name '*.elc' -print | sed 's/elc$/el/' | sort > $tmp2 |
70 -prune -o -name '*.elc' -print | sed 's/elc$/el/' | sort > $tmp2 | |
71 | 71 |
72 echon "Deleting .elc files without .el files... " | 72 echon "Deleting .elc files without .el files... " |
73 # (except for vm/vm.elc) | 73 # (except for vm/vm.elc) |
74 comm -13 $tmp1 $tmp2 | sed 's/\(.*\)\.el$/echo \1.elc ; rm \1.elc/' | sh | 74 comm -13 $tmp1 $tmp2 | sed 's/\(.*\)\.el$/echo \1.elc ; rm \1.elc/' | sh |
75 echo done. | 75 echo done. |
78 # first recompile the byte-compiler, so that the other compiles take place | 78 # first recompile the byte-compiler, so that the other compiles take place |
79 # with the latest version (assuming we're compiling the lisp dir of the emacs | 79 # with the latest version (assuming we're compiling the lisp dir of the emacs |
80 # we're running, which might not be the case, but often is.) | 80 # we're running, which might not be the case, but often is.) |
81 # | 81 # |
82 echon "Checking the byte compiler... " | 82 echon "Checking the byte compiler... " |
83 $REAL -batch -q -no-site-file -f batch-byte-recompile-directory lisp/bytecomp | 83 $BYTECOMP -f batch-byte-recompile-directory lisp/bytecomp |
84 | 84 |
85 echo Compiling files without .elc... | 85 echo Compiling files without .elc... |
86 | 86 |
87 # Isn't it wonderful the number of different ways you can | 87 # Isn't it wonderful the number of different ways you can |
88 # iterate over a list of files? | 88 # iterate over a list of files? |
123 \!/ediff/!d | 123 \!/ediff/!d |
124 \!/egg/!d | 124 \!/egg/!d |
125 \!/its/!d | 125 \!/its/!d |
126 \!/mule/!d | 126 \!/mule/!d |
127 \!/quail/!d | 127 \!/quail/!d |
128 ' | xargs -t -n$NUMTOCOMPILE $REAL -batch -q -no-site-file -f batch-byte-compile | 128 ' | xargs -t -n$NUMTOCOMPILE $BYTECOMP -f batch-byte-compile |
129 | 129 |
130 rm -f $tmp1 $tmp2 | 130 rm -f $tmp1 $tmp2 |
131 echo Done. | 131 echo Done. |
132 | 132 |
133 # vm is hard... | 133 # vm is hard... |
169 ( cd lisp/hyperbole ; make EMACS=$REAL elc ) | 169 ( cd lisp/hyperbole ; make EMACS=$REAL elc ) |
170 echo Hyperbole done. | 170 echo Hyperbole done. |
171 | 171 |
172 # OO-Browser too | 172 # OO-Browser too |
173 echo Compiling OO-Browser... | 173 echo Compiling OO-Browser... |
174 ( cd lisp/oobr ; make EMACS=$REAL HYPB_ELC= elc ) | 174 ( cd lisp/oobr ; make EMACS=$REAL HYPB_ELC='' elc ) |
175 echo OO-Browser done. | 175 echo OO-Browser done. |
176 | 176 |
177 # this is not strictly necessary but there are some special dependencies | 177 # this is not strictly necessary but there are some special dependencies |
178 echo Compiling EOS... | 178 echo Compiling EOS... |
179 ( cd lisp/eos ; make -k EMACS=$REAL ) | 179 ( cd lisp/eos ; make -k EMACS=$REAL ) |
181 | 181 |
182 # ilisp would seem to take a little extra now as well | 182 # ilisp would seem to take a little extra now as well |
183 # previously this was up top, but it requires that comint.elc exists. | 183 # previously this was up top, but it requires that comint.elc exists. |
184 | 184 |
185 echo Compiling Ilisp... | 185 echo Compiling Ilisp... |
186 ( cd lisp/ilisp ; make compile -f Makefile EMACS=$REAL ) | 186 ( cd lisp/ilisp ; make elc -f Makefile EMACS=$REAL ) |
187 echo Ilisp done. | 187 echo Ilisp done. |
188 | 188 |
189 # | 189 # |
190 # Now get the files whose .el is newer than .elc | 190 # Now get the files whose .el is newer than .elc |
191 # | 191 # |
192 echo Compiling files with out-of-date .elc... | 192 echo Compiling files with out-of-date .elc... |
193 $REAL -batch -q -no-site-file -f batch-byte-recompile-directory lisp | 193 $BYTECOMP -f batch-byte-recompile-directory lisp |