comparison lib-src/update-elc.sh @ 34:d620409f5eb8 r19-15b100

Import from CVS: tag r19-15b100
author cvs
date Mon, 13 Aug 2007 08:53:20 +0200
parents e04119814345
children c53a95d3c46d
comparison
equal deleted inserted replaced
33:9ee3cade837d 34:d620409f5eb8
13 ## are missing; thus you can execute 'rm lisp/*/*.elc' before running 13 ## are missing; thus you can execute 'rm lisp/*/*.elc' before running
14 ## this script. Run this from the parent directory of 'src', 'lisp', 14 ## this script. Run this from the parent directory of 'src', 'lisp',
15 ## and 'etc'. (If this is a Sun workspace, you can run it from 15 ## and 'etc'. (If this is a Sun workspace, you can run it from
16 ## 'era-specific' instead.) 16 ## 'era-specific' instead.)
17 17
18 set -eu 18 set -e
19 unset MAKEFLAGS # GNU make sets MAKEFLAGS to -w; confuses non-GNU make
20 19
21 # This means we're running in a Sun workspace 20 # This means we're running in a Sun workspace
22 if [ -d ../era-specific ]; then 21 if [ -d ../era-specific ]; then
23 cd ../editor 22 cd ../editor
24 fi 23 fi
55 REAL=`cd \`dirname $EMACS\` ; pwd | sed 's|^/tmp_mnt||'`/`basename $EMACS` 54 REAL=`cd \`dirname $EMACS\` ; pwd | sed 's|^/tmp_mnt||'`/`basename $EMACS`
56 BYTECOMP="$REAL -batch -q -no-site-file " 55 BYTECOMP="$REAL -batch -q -no-site-file "
57 echo "Recompiling in `pwd|sed 's|^/tmp_mnt||'`" 56 echo "Recompiling in `pwd|sed 's|^/tmp_mnt||'`"
58 echo " with $REAL..." 57 echo " with $REAL..."
59 58
60 $EMACS -batch -q -no-site-file -l cleantree -f batch-remove-old-elc lisp 59 $EMACS -batch -q -l `pwd`/lisp/prim/cleantree -f batch-remove-old-elc lisp
61 60
62 prune_vc="( -name SCCS -o -name RCS -o -name CVS ) -prune -o" 61 prune_vc="( -name SCCS -o -name RCS -o -name CVS ) -prune -o"
63 62
64 tmp1=/tmp/rcl1.$$ 63 tmp1=/tmp/rcl1.$$
65 tmp2=/tmp/rcl2.$$ 64 tmp2=/tmp/rcl2.$$
184 183
185 # AUC TeX requires special treatment 184 # AUC TeX requires special treatment
186 echo Compiling AUC TeX... 185 echo Compiling AUC TeX...
187 ( cd lisp/auctex ; ${MAKE:-make} some -f Makefile EMACS=$REAL ) 186 ( cd lisp/auctex ; ${MAKE:-make} some -f Makefile EMACS=$REAL )
188 echo AUC TeX done. 187 echo AUC TeX done.
189
190 #
191 # Now get the files whose .el is newer than .elc
192 #
193 echo Compiling files with out-of-date .elc...
194 $BYTECOMP -f batch-byte-recompile-directory lisp