annotate lib-src/update-autoloads.sh @ 146:2af401a6ecca r20-2p1

Import from CVS: tag r20-2p1
author cvs
date Mon, 13 Aug 2007 09:34:46 +0200
parents 1ce6082ce73f
children 59463afc5666
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 #!/bin/sh
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 78
diff changeset
2 ### update-autoloads.sh --- update auto-autoloads.el as necessary
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 set -eu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 # This means we're running in a Sun workspace
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 12
diff changeset
7 test -d ../era-specific && cd ../editor
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 # get to the right directory
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 12
diff changeset
10 test ! -d ./lisp -a -d ../lisp && cd ..
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 12
diff changeset
11 if test ! -d ./lisp ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 12
diff changeset
12 echo $0: neither ./lisp/ nor ../lisp/ exist
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 12
diff changeset
13 exit 1
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 12
diff changeset
16 EMACS="./src/xemacs"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 echo " (using $EMACS)"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 export EMACS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 REAL=`cd \`dirname $EMACS\` ; pwd | sed 's|^/tmp_mnt||'`/`basename $EMACS`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 echo "Recompiling in `pwd|sed 's|^/tmp_mnt||'`"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 echo " with $REAL..."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25
78
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
26 dirs=
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
27 for dir in lisp/* ; do
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
28 if test -d $dir \
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
29 -a $dir != lisp/CVS \
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
30 -a $dir != lisp/SCCS \
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
31 -a $dir != lisp/egg \
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
32 -a $dir != lisp/eterm \
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
33 -a $dir != lisp/its \
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
34 -a $dir != lisp/mule \
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
35 -a $dir != lisp/quail \
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
36 -a $dir != lisp/vms ; then
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
37 dirs="$dirs $dir"
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
38 fi
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
39 done
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
40 cat > lisp/prim/auto-autoloads.el << EOF
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
41 ;;; Do NOT edit this file!
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
42 ;;; It is automatically generated using "make autoloads"
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
43 ;;; See update-autoloads.sh and autoload.el for more details.
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
44
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
45 EOF
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
46 set -x
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
47 $EMACS -batch -q -l autoload -f batch-update-autoloads $dirs