Mercurial > hg > xemacs-beta
comparison lib-src/update-elc.sh @ 371:cc15677e0335 r21-2b1
Import from CVS: tag r21-2b1
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:03:08 +0200 |
parents | 7c94d56991e1 |
children | 1f50e6fe4f3f |
comparison
equal
deleted
inserted
replaced
370:bd866891f083 | 371:cc15677e0335 |
---|---|
58 { | 58 { |
59 echo -n $* | 59 echo -n $* |
60 } | 60 } |
61 fi | 61 fi |
62 | 62 |
63 EMACS_DIR=`cd \`dirname $EMACS\` && pwd`; | 63 REAL=`cd \`dirname $EMACS\` ; pwd | sed 's|^/tmp_mnt||'`/`basename $EMACS` |
64 CANON_PWD=`pwd` | 64 BYTECOMP="$REAL -batch -vanilla " |
65 # Account for various system automounter configurations | 65 echo "Recompiling in `pwd|sed 's|^/tmp_mnt||'`" |
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" | |
76 echo " with $REAL..." | 66 echo " with $REAL..." |
77 | 67 |
78 BYTECOMP="$REAL -batch -vanilla " | 68 $EMACS -batch -vanilla -l `pwd`/lisp/cleantree -f batch-remove-old-elc lisp |
79 | |
80 $EMACS -batch -vanilla -l $CANON_PWD/lisp/cleantree -f batch-remove-old-elc lisp | |
81 | 69 |
82 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" |
83 | 71 |
84 # $els is a list of all .el files | 72 # $els is a list of all .el files |
85 # $elcs is a list of all .elc files | 73 # $elcs is a list of all .elc files |
104 echon "Checking for Mule support..." | 92 echon "Checking for Mule support..." |
105 lisp_prog='(princ (featurep (quote mule)))' | 93 lisp_prog='(princ (featurep (quote mule)))' |
106 mule_p="`$EMACS -batch -vanilla -eval \"$lisp_prog\"`" | 94 mule_p="`$EMACS -batch -vanilla -eval \"$lisp_prog\"`" |
107 if test "$mule_p" = nil ; then | 95 if test "$mule_p" = nil ; then |
108 echo No | 96 echo No |
109 ignore_dirs="$ignore_dirs mule" | 97 ignore_dirs="$ignore_dirs its egg mule language leim skk" |
98 ignore_pattern='\!/tl/char-table.el$!d | |
99 \!/tl/chartblxmas.el$!d | |
100 \!/mu/latex-math-symbol.el$!d | |
101 ' | |
110 else | 102 else |
111 echo Yes | 103 echo Yes |
112 fi | 104 fi |
113 | 105 |
114 # 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 |