annotate lib-src/update-autoloads.sh @ 160:1c55655d6702

Added tag r20-3b6 for changeset 3bb7ccffb0c0
author cvs
date Mon, 13 Aug 2007 09:41:47 +0200
parents 59463afc5666
children 0132846995bd
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/its \
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
33 -a $dir != lisp/mule \
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 80
diff changeset
34 -a $dir != lisp/quail; then
78
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
35 dirs="$dirs $dir"
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
36 fi
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
37 done
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
38 cat > lisp/prim/auto-autoloads.el << EOF
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
39 ;;; Do NOT edit this file!
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
40 ;;; It is automatically generated using "make autoloads"
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
41 ;;; See update-autoloads.sh and autoload.el for more details.
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
42
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
43 EOF
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
44 set -x
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 74
diff changeset
45 $EMACS -batch -q -l autoload -f batch-update-autoloads $dirs