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