0
|
1 #!/bin/sh
|
12
|
2 ### update-autoloads.sh --- update auto-loaddefs.el as necessary
|
0
|
3
|
|
4 set -eu
|
|
5
|
|
6 # This means we're running in a Sun workspace
|
|
7 if [ -d ../era-specific ]; then
|
|
8 cd ../editor
|
|
9 fi
|
|
10
|
|
11 # get to the right directory
|
|
12 if [ ! -d ./lisp ]; then
|
|
13 if [ -d ../lisp ]; then
|
|
14 cd ..
|
|
15 else
|
|
16 echo $0: neither ./lisp/ nor ../lisp/ exist
|
|
17 exit 1
|
|
18 fi
|
|
19 fi
|
|
20
|
|
21 EMACS=./src/xemacs
|
|
22 echo " (using $EMACS)"
|
|
23
|
|
24 export EMACS
|
|
25
|
|
26 REAL=`cd \`dirname $EMACS\` ; pwd | sed 's|^/tmp_mnt||'`/`basename $EMACS`
|
|
27
|
|
28 echo "Recompiling in `pwd|sed 's|^/tmp_mnt||'`"
|
|
29 echo " with $REAL..."
|
|
30
|
12
|
31 dirs=
|
|
32 for dir in lisp/* ; do
|
|
33 if test -d $dir \
|
|
34 -a $dir != lisp/CVS \
|
|
35 -a $dir != lisp/SCCS \
|
|
36 -a $dir != lisp/egg \
|
|
37 -a $dir != lisp/eterm \
|
|
38 -a $dir != lisp/its \
|
|
39 -a $dir != lisp/mule \
|
|
40 -a $dir != lisp/quail \
|
|
41 -a $dir != lisp/vms ; then
|
|
42 dirs="$dirs $dir"
|
|
43 fi
|
|
44 done
|
|
45 cat > lisp/prim/auto-autoloads.el << EOF
|
|
46 ;;; Do NOT edit this file!
|
|
47 ;;; It is automatically generated using "make autoloads"
|
|
48 ;;; See update-autoloads.sh and autoload.el for more details.
|
|
49
|
|
50 EOF
|
|
51 set -x
|
|
52 $EMACS -batch -q -l autoload -f batch-update-autoloads $dirs
|