annotate lib-src/update-autoloads.sh @ 68:0b7f3b634cf2 r19-16-pre9

Import from CVS: tag r19-16-pre9
author cvs
date Mon, 13 Aug 2007 09:00:03 +0200
parents bcdc7deadc19
children 131b0175ea99
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
12
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 2
diff changeset
2 ### update-autoloads.sh --- update auto-loaddefs.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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 if [ -d ../era-specific ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 cd ../editor
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 # get to the right directory
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 if [ ! -d ./lisp ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 if [ -d ../lisp ]; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 cd ..
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 echo $0: neither ./lisp/ nor ../lisp/ exist
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 EMACS=./src/xemacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 echo " (using $EMACS)"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 export EMACS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 REAL=`cd \`dirname $EMACS\` ; pwd | sed 's|^/tmp_mnt||'`/`basename $EMACS`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 echo "Recompiling in `pwd|sed 's|^/tmp_mnt||'`"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 echo " with $REAL..."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30
12
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 2
diff changeset
31 dirs=
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 2
diff changeset
32 for dir in lisp/* ; do
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 2
diff changeset
33 if test -d $dir \
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 2
diff changeset
34 -a $dir != lisp/CVS \
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 2
diff changeset
35 -a $dir != lisp/SCCS \
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 2
diff changeset
36 -a $dir != lisp/egg \
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 2
diff changeset
37 -a $dir != lisp/eterm \
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 2
diff changeset
38 -a $dir != lisp/its \
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 2
diff changeset
39 -a $dir != lisp/mule \
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 2
diff changeset
40 -a $dir != lisp/quail \
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 2
diff changeset
41 -a $dir != lisp/vms ; then
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 2
diff changeset
42 dirs="$dirs $dir"
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 2
diff changeset
43 fi
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 2
diff changeset
44 done
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 2
diff changeset
45 cat > lisp/prim/auto-autoloads.el << EOF
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 2
diff changeset
46 ;;; Do NOT edit this file!
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 2
diff changeset
47 ;;; It is automatically generated using "make autoloads"
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 2
diff changeset
48 ;;; See update-autoloads.sh and autoload.el for more details.
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 2
diff changeset
49
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 2
diff changeset
50 EOF
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 2
diff changeset
51 set -x
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 2
diff changeset
52 $EMACS -batch -q -l autoload -f batch-update-autoloads $dirs