comparison lib-src/update-elc.sh @ 217:d44af0c54775 r20-4b7

Import from CVS: tag r20-4b7
author cvs
date Mon, 13 Aug 2007 10:08:34 +0200
parents 1f0dabaa0855
children 262b8bb4a523
comparison
equal deleted inserted replaced
216:43306a74e31c 217:d44af0c54775
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 -vanilla " 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 -vanilla -l `pwd`/lisp/prim/cleantree -f batch-remove-old-elc lisp 68 $EMACS -batch -vanilla -l `pwd`/lisp/cleantree -f batch-remove-old-elc lisp
69 69
70 prune_vc="( -name '.*' -o -name SCCS -o -name RCS -o -name CVS ) -prune -o" 70 prune_vc="( -name '.*' -o -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
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 111
112 # Prepare for byte-compiling directories with directory-specific instructions 112 # Prepare for byte-compiling directories with directory-specific instructions
113 make_special_commands='' 113 # Not necessary any more, but I want to keep the text current to cut & paste
114 make_special () { 114 # into the package lisp maintenance tree.
115 dir="$1"; shift; 115 #make_special_commands=''
116 ignore_dirs="$ignore_dirs $dir" 116 #make_special () {
117 make_special_commands="$make_special_commands \ 117 # dir="$1"; shift;
118 echo \"Compiling in lisp/$dir\"; \ 118 # ignore_dirs="$ignore_dirs $dir"
119 (cd \"lisp/$dir\" && ${MAKE:-make} EMACS=$REAL ${1+$*}); \ 119 # make_special_commands="$make_special_commands \
120 echo \"lisp/$dir done.\";" 120 #echo \"Compiling in lisp/$dir\"; \
121 } 121 #(cd \"lisp/$dir\" && ${MAKE:-make} EMACS=$REAL ${1+$*}); \
122 #echo \"lisp/$dir done.\";"
123 #}
122 124
123 ## AUCTeX is a package now 125 ## AUCTeX is a package now
124 # if test "$mule_p" = nil ; then 126 # if test "$mule_p" = nil ; then
125 # make_special auctex some 127 # make_special auctex some
126 # else 128 # else
127 # make_special auctex some MULE_ELC=tex-jp.elc 129 # make_special auctex some MULE_ELC=tex-jp.elc
128 # fi 130 # fi
129 #make_special cc-mode all 131 #make_special cc-mode all
130 # EFS is now packaged 132 # EFS is now packaged
131 # make_special efs x20 133 # make_special efs x20
132 make_special eos -k # not strictly necessary... 134 #make_special eos -k # not strictly necessary...
133 ## make_special gnus some # Now this is a package. 135 ## make_special gnus some # Now this is a package.
134 # hyperbole is now packaged 136 # hyperbole is now packaged
135 # make_special hyperbole elc 137 # make_special hyperbole elc
136 # We're not ready for the following, yet. 138 # We're not ready for the following, yet.
137 #make_special ilisp XEmacsELC=custom-load.elc elc 139 #make_special ilisp XEmacsELC=custom-load.elc elc
188 comm -23 $els $elcs | \ 190 comm -23 $els $elcs | \
189 sed "$ignore_pattern" | \ 191 sed "$ignore_pattern" | \
190 xargs -t -n$NUMTOCOMPILE $BYTECOMP -f batch-byte-compile 192 xargs -t -n$NUMTOCOMPILE $BYTECOMP -f batch-byte-compile
191 echo "Compiling files without .elc... Done" 193 echo "Compiling files without .elc... Done"
192 194
193 eval "$make_special_commands" 195 #eval "$make_special_commands"