Mercurial > hg > xemacs-beta
diff 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 |
line wrap: on
line diff
--- a/lib-src/update-elc.sh Mon Aug 13 08:47:56 2007 +0200 +++ b/lib-src/update-elc.sh Mon Aug 13 08:48:16 2007 +0200 @@ -54,10 +54,11 @@ REAL=`cd \`dirname $EMACS\` ; pwd | sed 's|^/tmp_mnt||'`/`basename $EMACS` - +BYTECOMP="$REAL -batch -q -no-site-file -l bytecomp" echo "Recompiling in `pwd|sed 's|^/tmp_mnt||'`" echo " with $REAL..." +prune_vc="( -name SCCS -o -name RCS -o -name CVS ) -prune -o" tmp1=/tmp/rcl1.$$ tmp2=/tmp/rcl2.$$ @@ -65,9 +66,8 @@ # tmp1 is a list of all .el files # tmp2 is a list of all .elc files -find lisp/. -name SCCS -prune -o -name '*.el' -print | sort > $tmp1 -find lisp/. -name SCCS -prune -o -name 'w3.elc' -prune -o -name 'vm.elc' \ - -prune -o -name '*.elc' -print | sed 's/elc$/el/' | sort > $tmp2 +find lisp/. $prune_vc -name '*.el' -print | sort > $tmp1 +find lisp/. $prune_vc -name '*.elc' -print | sed 's/elc$/el/' | sort > $tmp2 echon "Deleting .elc files without .el files... " # (except for vm/vm.elc) @@ -80,7 +80,7 @@ # we're running, which might not be the case, but often is.) # echon "Checking the byte compiler... " -$REAL -batch -q -no-site-file -f batch-byte-recompile-directory lisp/bytecomp +$BYTECOMP -f batch-byte-recompile-directory lisp/bytecomp echo Compiling files without .elc... @@ -125,7 +125,7 @@ \!/its/!d \!/mule/!d \!/quail/!d -' | xargs -t -n$NUMTOCOMPILE $REAL -batch -q -no-site-file -f batch-byte-compile +' | xargs -t -n$NUMTOCOMPILE $BYTECOMP -f batch-byte-compile rm -f $tmp1 $tmp2 echo Done. @@ -171,7 +171,7 @@ # OO-Browser too echo Compiling OO-Browser... -( cd lisp/oobr ; make EMACS=$REAL HYPB_ELC= elc ) +( cd lisp/oobr ; make EMACS=$REAL HYPB_ELC='' elc ) echo OO-Browser done. # this is not strictly necessary but there are some special dependencies @@ -183,11 +183,11 @@ # previously this was up top, but it requires that comint.elc exists. echo Compiling Ilisp... -( cd lisp/ilisp ; make compile -f Makefile EMACS=$REAL ) +( cd lisp/ilisp ; make elc -f Makefile EMACS=$REAL ) echo Ilisp done. # # Now get the files whose .el is newer than .elc # echo Compiling files with out-of-date .elc... -$REAL -batch -q -no-site-file -f batch-byte-recompile-directory lisp +$BYTECOMP -f batch-byte-recompile-directory lisp