annotate lib-src/update-autoloads.sh @ 74:54cc21c15cbb r20-0b32

Import from CVS: tag r20-0b32
author cvs
date Mon, 13 Aug 2007 09:04:33 +0200
parents 131b0175ea99
children c7528f8e288d
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
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 12
diff changeset
2 ### update-autoloads.sh --- update 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
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
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 12
diff changeset
26 $EMACS -batch -q -f batch-update-autoloads \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 12
diff changeset
27 `ls lisp | egrep -v \
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
28 "ChangeLog|CVS|COPYING|README|SCCS|egg|eterm|its|mule|paths.el|quail|version.el|vms" \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 12
diff changeset
29 | xargs -i echo lisp/\{\}`