From xemacs-m  Mon Jun 30 07:54:38 1997
Received: from bittersweet.inetarena.com (karlheg@bittersweet.inetarena.com [206.129.216.38])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id HAA18137
	for <xemacs-beta@xemacs.org>; Mon, 30 Jun 1997 07:54:36 -0500 (CDT)
Received: (from karlheg@localhost)
	by bittersweet.inetarena.com (8.8.5/8.8.5) id FAA04708;
	Mon, 30 Jun 1997 05:54:54 -0700
To: XEmacs Beta <xemacs-beta@xemacs.org>
Subject: [patch] update-autoloads.sh - for non-MULE
X-Face: /Q}=yl}1_v7nP)xXo5XjG8+tl@=uVu7o5u6)f]zN?+<hB!K.m9:[|*p34jVN`O;:XZXVSy>/\R>qDt(t8w!-i{(y0"`jFw^uk8inzO9wXabd'CdjUWfC\GHi:6nO*YC89#-qD>Q4r%9!V"<RYJ=7D#$";q=zML5'!=wvXk^$`6FT=5CMofQX)WUKt0p:OKl.mFOXx/D
Mime-Version: 1.0 (generated by tm-edit 7.108)
Content-Type: multipart/mixed;
 boundary="Multipart_Mon_Jun_30_05:54:52_1997-1"
Content-Transfer-Encoding: 7bit
From: karlheg+xemacs@inetarena.com (Karl M. Hegbloom)
Date: 30 Jun 1997 05:54:52 -0700
Message-ID: <87205kb68z.fsf@bittersweet.inetarena.com>
Lines: 70
X-Mailer: Gnus v5.4.60/XEmacs 20.3(beta10) - "Athens"

--Multipart_Mon_Jun_30_05:54:52_1997-1
Content-Type: text/plain; charset=US-ASCII


 It will regenerate the autoloads for non-MULE XEmacs now.  I tested
it by fixing the AucTeX autoload cookies.  It works!

(The next thing is to make it work better when compiling --with-x=no.
That will be more complicated, and will require quite a lot more
knowledge of XEmacs internals than I have at present.)



--Multipart_Mon_Jun_30_05:54:52_1997-1
Content-Type: text/plain; charset=US-ASCII

--- update-autoloads.sh.orig	Mon Jun 30 02:01:08 1997
+++ update-autoloads.sh	Mon Jun 30 05:40:05 1997
@@ -47,6 +47,7 @@
 
 # Compute patterns to ignore when searching for files
 ignore_dirs=""
+ignore_files=""
 
 # Only use Mule XEmacs to build Mule-specific autoloads & custom-loads.
 echon "Checking for Mule support..."
@@ -55,6 +56,7 @@
 if test "$mule_p" = nil ; then
 	echo No
 	ignore_dirs="$ignore_dirs its egg mule leim"
+	ignore_files="$ignore_files auctex/tex-jp.el tl/char-table.el tl/chartblxmas.el"
 else
 	echo Yes
 fi
@@ -74,7 +76,23 @@
 	fi
 done
 
+# The regex in "../lisp/utils/autoload.el"
+# `update-autoloads-from-directory', line 507
+# excludes filenames beginning with an '=' sign.
+for file in $ignore_files; do
+    mv lisp/$file lisp/`dirname $file`/=`basename $file`
+done
+
 set -x
 for dir in $dirs; do
-	$EMACS -batch -q -l autoload -f batch-update-directory $dir
+    $EMACS -batch -q -no-site-file -l autoload -f batch-update-directory $dir
+done
+set +x
+
+# if the $EMACS command above fails, which happens if you try to run a
+# MULE lisp file through it, this clean up won't get run, and the next
+# time you run this script the first `mv' loop will fail with file not
+# found.  I don't know how to fix this; I need to read more scripts.
+for file in $ignore_files; do
+    mv lisp/`dirname $file`/=`basename $file` lisp/$file
 done


--Multipart_Mon_Jun_30_05:54:52_1997-1
Content-Type: text/plain; charset=US-ASCII

mailto:karlheg+sig@inetarena.com (Karl M. Hegbloom)
http://www.inetarena.com/~karlheg
Portland, OR  USA
Debian GNU 1.3  Linux 2.1.36 AMD K5 PR-133

--Multipart_Mon_Jun_30_05:54:52_1997-1--

