comparison lib-src/update-elc.sh @ 333:4f79e16b1112 r21-0-64

Import from CVS: tag r21-0-64
author cvs
date Mon, 13 Aug 2007 10:49:50 +0200
parents c6de09ad3017
children 7c94d56991e1
comparison
equal deleted inserted replaced
332:bb75ebac9531 333:4f79e16b1112
58 { 58 {
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 EMACS_DIR=`cd \`dirname $EMACS\` && pwd`;
64 BYTECOMP="$REAL -batch -vanilla " 64 CANON_PWD=`pwd`
65 echo "Recompiling in `pwd|sed 's|^/tmp_mnt||'`" 65 # Account for various system automounter configurations
66 if test -d "/net"; then
67 if test -d "/tmp_mnt/net"; then tdir="/tmp_mnt/net"; else tdir="/tmp_mnt"; fi
68 EMACS_DIR=`echo "$EMACS_DIR" | \
69 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
70 CANON_PWD=`echo "$CANON_PWD" | \
71 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
72 fi
73 REAL="$EMACS_DIR/`basename $EMACS`"
74
75 echo "Recompiling in $CANON_PWD"
66 echo " with $REAL..." 76 echo " with $REAL..."
67 77
68 $EMACS -batch -vanilla -l `pwd`/lisp/cleantree -f batch-remove-old-elc lisp 78 BYTECOMP="$REAL -batch -vanilla "
79
80 $EMACS -batch -vanilla -l $CANON_PWD/lisp/cleantree -f batch-remove-old-elc lisp
69 81
70 prune_vc="( -name '.*' -o -name SCCS -o -name RCS -o -name CVS ) -prune -o" 82 prune_vc="( -name '.*' -o -name SCCS -o -name RCS -o -name CVS ) -prune -o"
71 83
72 # $els is a list of all .el files 84 # $els is a list of all .el files
73 # $elcs is a list of all .elc files 85 # $elcs is a list of all .elc files
92 echon "Checking for Mule support..." 104 echon "Checking for Mule support..."
93 lisp_prog='(princ (featurep (quote mule)))' 105 lisp_prog='(princ (featurep (quote mule)))'
94 mule_p="`$EMACS -batch -vanilla -eval \"$lisp_prog\"`" 106 mule_p="`$EMACS -batch -vanilla -eval \"$lisp_prog\"`"
95 if test "$mule_p" = nil ; then 107 if test "$mule_p" = nil ; then
96 echo No 108 echo No
97 ignore_dirs="$ignore_dirs its egg mule language leim skk" 109 ignore_dirs="$ignore=dirs mule"
98 ignore_pattern='\!/tl/char-table.el$!d
99 \!/tl/chartblxmas.el$!d
100 \!/mu/latex-math-symbol.el$!d
101 '
102 else 110 else
103 echo Yes 111 echo Yes
104 fi 112 fi
105 113
106 # first recompile the byte-compiler, so that the other compiles take place 114 # first recompile the byte-compiler, so that the other compiles take place