X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lib-src%2Fupdate-elc.sh;h=fdc5edc2cef8d410cafa42401fff84a141630de1;hb=12d15df6028e65adcc90f8e9edc947ee3286b733;hp=f0cfc4544ed6bb29b7ab4cb8ad0c72b46ef6f3ae;hpb=2e3e3f9ee27fec50f45c282d71eaddf7c673bc56;p=chise%2Fxemacs-chise.git diff --git a/lib-src/update-elc.sh b/lib-src/update-elc.sh index f0cfc45..fdc5edc 100644 --- a/lib-src/update-elc.sh +++ b/lib-src/update-elc.sh @@ -48,6 +48,7 @@ export EMACS echo " (using $EMACS)" # fuckin' sysv, man... +# Nuke this function... if [ "`uname -r | sed 's/[^0-9]*\([0-9]*\).*/\1/'`" -gt 4 ]; then echon() { @@ -60,12 +61,24 @@ else } fi -REAL=`cd \`dirname $EMACS\` ; pwd | sed 's|^/tmp_mnt||'`/`basename $EMACS` -BYTECOMP="$REAL -batch -vanilla " -echo "Recompiling in `pwd|sed 's|^/tmp_mnt||'`" +EMACS_DIR=`cd \`dirname $EMACS\` && pwd`; +CANON_PWD=`pwd` +# Account for various system automounter configurations +if test -d "/net"; then + if test -d "/tmp_mnt/net"; then tdir="/tmp_mnt/net"; else tdir="/tmp_mnt"; fi + EMACS_DIR=`echo "$EMACS_DIR" | \ + sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"` + CANON_PWD=`echo "$CANON_PWD" | \ + sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"` +fi +REAL="$EMACS_DIR/`basename $EMACS`" + +echo "Recompiling in $CANON_PWD" echo " with $REAL..." -$EMACS -batch -vanilla -l `pwd`/lisp/cleantree -f batch-remove-old-elc lisp +BYTECOMP="$REAL -batch -vanilla " + +$EMACS -batch -vanilla -l $CANON_PWD/lisp/cleantree -f batch-remove-old-elc lisp prune_vc="( -name '.*' -o -name SCCS -o -name RCS -o -name CVS ) -prune -o" @@ -94,11 +107,18 @@ lisp_prog='(princ (featurep (quote mule)))' mule_p="`$EMACS -batch -vanilla -eval \"$lisp_prog\"`" if test "$mule_p" = nil ; then echo No - ignore_dirs="$ignore_dirs its egg mule language leim skk" - ignore_pattern='\!/tl/char-table.el$!d -\!/tl/chartblxmas.el$!d -\!/mu/latex-math-symbol.el$!d -' + ignore_dirs="$ignore_dirs mule" +else + echo Yes +fi + +# Only use UTF-2000 XEmacs to compile UTF-2000-specific elisp dirs +echon "Checking for UTF-2000 support..." +lisp_prog='(princ (featurep (quote utf-2000)))' +mule_p="`$EMACS -batch -vanilla -eval \"$lisp_prog\"`" +if test "$utf_2000_p" = nil ; then + echo No + ignore_dirs="$ignore_dirs utf-2000" else echo Yes fi @@ -168,7 +188,6 @@ ignore_pattern="$ignore_pattern"' \!/site-init.el$!d \!/version.el$!d \!/very-early-lisp.el$!d -\!/Installation.el$!d ' echo "Compiling files without .elc..."