Mercurial > hg > xemacs-beta
comparison lib-src/update-elc.sh @ 207:e45d5e7c476e r20-4b2
Import from CVS: tag r20-4b2
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:03:52 +0200 |
parents | eb5470882647 |
children | 41ff10fd062f |
comparison
equal
deleted
inserted
replaced
206:d3e9274cbc4e | 207:e45d5e7c476e |
---|---|
59 echo -n $* | 59 echo -n $* |
60 } | 60 } |
61 fi | 61 fi |
62 | 62 |
63 REAL=`cd \`dirname $EMACS\` ; pwd | sed 's|^/tmp_mnt||'`/`basename $EMACS` | 63 REAL=`cd \`dirname $EMACS\` ; pwd | sed 's|^/tmp_mnt||'`/`basename $EMACS` |
64 BYTECOMP="$REAL -batch -q -no-site-file " | 64 BYTECOMP="$REAL -batch -vanilla " |
65 echo "Recompiling in `pwd|sed 's|^/tmp_mnt||'`" | 65 echo "Recompiling in `pwd|sed 's|^/tmp_mnt||'`" |
66 echo " with $REAL..." | 66 echo " with $REAL..." |
67 | 67 |
68 $EMACS -batch -q -l `pwd`/lisp/prim/cleantree -f batch-remove-old-elc lisp | 68 $EMACS -batch -vanilla -l `pwd`/lisp/prim/cleantree -f batch-remove-old-elc lisp |
69 | 69 |
70 prune_vc="( -name SCCS -o -name RCS -o -name CVS ) -prune -o" | 70 prune_vc="( -name SCCS -o -name RCS -o -name CVS ) -prune -o" |
71 | 71 |
72 # $els is a list of all .el files | 72 # $els is a list of all .el files |
73 # $elcs is a list of all .elc files | 73 # $elcs is a list of all .elc files |
89 ignore_pattern='' | 89 ignore_pattern='' |
90 | 90 |
91 # Only use Mule XEmacs to compile Mule-specific elisp dirs | 91 # Only use Mule XEmacs to compile Mule-specific elisp dirs |
92 echon "Checking for Mule support..." | 92 echon "Checking for Mule support..." |
93 lisp_prog='(princ (featurep (quote mule)))' | 93 lisp_prog='(princ (featurep (quote mule)))' |
94 mule_p="`$EMACS -batch -no-site-file -eval \"$lisp_prog\"`" | 94 mule_p="`$EMACS -batch -vanilla -eval \"$lisp_prog\"`" |
95 if test "$mule_p" = nil ; then | 95 if test "$mule_p" = nil ; then |
96 echo No | 96 echo No |
97 ignore_dirs="$ignore_dirs its egg mule language leim" | 97 ignore_dirs="$ignore_dirs its egg mule language leim" |
98 ignore_pattern='\!/tl/char-table.el$!d | 98 ignore_pattern='\!/tl/char-table.el$!d |
99 \!/tl/chartblxmas.el$!d | 99 \!/tl/chartblxmas.el$!d |
106 # first recompile the byte-compiler, so that the other compiles take place | 106 # first recompile the byte-compiler, so that the other compiles take place |
107 # with the latest version (assuming we're compiling the lisp dir of the emacs | 107 # with the latest version (assuming we're compiling the lisp dir of the emacs |
108 # we're running, which might not be the case, but often is.) | 108 # we're running, which might not be the case, but often is.) |
109 echo "Checking the byte compiler..." | 109 echo "Checking the byte compiler..." |
110 $BYTECOMP -f batch-byte-recompile-directory lisp/bytecomp | 110 $BYTECOMP -f batch-byte-recompile-directory lisp/bytecomp |
111 | |
112 # Byte-compile VM first, because other packages depend on it, | |
113 # but it depends on nothing (Kyle is like that). | |
114 ignore_dirs="$ignore_dirs vm" | |
115 echo "Compiling in lisp/vm"; | |
116 (cd lisp/vm && ${MAKE:-make} EMACS=$REAL autoload) | |
117 echo "lisp/vm done." | |
118 | 111 |
119 # Prepare for byte-compiling directories with directory-specific instructions | 112 # Prepare for byte-compiling directories with directory-specific instructions |
120 make_special_commands='' | 113 make_special_commands='' |
121 make_special () { | 114 make_special () { |
122 dir="$1"; shift; | 115 dir="$1"; shift; |
132 # make_special auctex some | 125 # make_special auctex some |
133 # else | 126 # else |
134 # make_special auctex some MULE_ELC=tex-jp.elc | 127 # make_special auctex some MULE_ELC=tex-jp.elc |
135 # fi | 128 # fi |
136 #make_special cc-mode all | 129 #make_special cc-mode all |
137 make_special efs x20 | 130 # EFS is now packaged |
131 # make_special efs x20 | |
138 make_special eos -k # not strictly necessary... | 132 make_special eos -k # not strictly necessary... |
139 ## make_special gnus some # Now this is a package. | 133 ## make_special gnus some # Now this is a package. |
140 make_special hyperbole elc | 134 make_special hyperbole elc |
141 # We're not ready for the following, yet. | 135 # We're not ready for the following, yet. |
142 #make_special ilisp XEmacsELC=custom-load.elc elc | 136 #make_special ilisp XEmacsELC=custom-load.elc elc |