2 ### update-autoloads.sh --- update auto-autoloads.el as necessary
4 # Author: Jamie Zawinski, Ben Wing, Martin Buchholz, Steve Baur
5 # Maintainer: Steve Baur
8 # This file is part of XEmacs.
10 # XEmacs is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; either version 2, or (at your option)
15 # XEmacs is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # General Public License for more details.
20 # You should have received a copy of the GNU General Public License
21 # along with XEmacs; see the file COPYING. If not, write to
22 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 # Boston, MA 02111-1307, USA.
31 # This means we're running in a Sun workspace
32 test -d ../era-specific && cd ../editor
34 # get to the right directory
35 test ! -d ./lisp -a -d ../lisp && cd ..
36 if test ! -d ./lisp ; then
37 echo $0: neither ./lisp/ nor ../lisp/ exist
41 test -z "$EMACS" && EMACS="./src/xemacs"
42 echo " (using $EMACS)"
46 REAL=`cd \`dirname $EMACS\` ; pwd | sed 's|^/tmp_mnt||'`/`basename $EMACS`
48 echo "Rebuilding autoloads in `pwd|sed 's|^/tmp_mnt||'`"
51 if [ "`uname -r | sed 's/\(.\).*/\1/'`" -gt 4 ]; then
63 # Compute patterns to ignore when searching for files
64 # These directories don't have autoloads or are partially broken.
65 ignore_dirs="egg eos ilisp its locale mel mu sunpro term tooltalk"
67 # Prepare for autoloading directories with directory-specific instructions
68 make_special_commands=''
71 ignore_dirs="$ignore_dirs $dir"
72 make_special_commands="$make_special_commands \
73 (cd \"lisp/$dir\" && ${MAKE:-make} EMACS=$REAL ${1+$*});"
76 # Only use Mule XEmacs to build Mule-specific autoloads & custom-loads.
77 echon "Checking for Mule support..."
78 lisp_prog='(princ (featurep (quote mule)))'
79 mule_p="`$EMACS -batch -q -no-site-file -eval \"$lisp_prog\"`"
80 if test "$mule_p" = nil ; then
82 ignore_dirs="$ignore_dirs mule leim language skk"
87 ## AUCTeX is a Package now
88 # if test "$mule_p" = nil ; then
89 # make_special auctex autoloads
91 # make_special auctex autoloads MULE_EL=tex-jp.elc
93 #make_special cc-mode autoloads
95 #make_special efs autoloads
96 #make_special eos autoloads # EOS doesn't have custom or autoloads
97 # Hyperbole is now packaged
98 # make_special hyperbole autoloads
99 # make_special ilisp autoloads
100 # oobr is now packaged
101 # make_special oobr HYPB_ELC='' autoloads
102 ## W3 is a package now
103 ##make_special w3 autoloads
106 for dir in lisp/*; do
108 -a $dir != lisp/CVS \
109 -a $dir != lisp/SCCS; then
110 for ignore in $ignore_dirs; do
111 if test $dir = lisp/$ignore; then
119 $EMACS -batch -q -no-site-file -eval '(setq autoload-package-name "Standard")' \
120 -l autoload -f batch-update-directory lisp
124 $EMACS -batch -q -no-site-file -l autoload -f batch-update-directory $dir
127 # eval "$make_special_commands"