comparison lib-src/update-autoloads.sh @ 78:c7528f8e288d r20-0b34

Import from CVS: tag r20-0b34
author cvs
date Mon, 13 Aug 2007 09:05:42 +0200
parents 54cc21c15cbb
children 1ce6082ce73f
comparison
equal deleted inserted replaced
77:6cb4f478e7bc 78:c7528f8e288d
1 #!/bin/sh 1 #!/bin/sh
2 ### update-autoloads.sh --- update loaddefs.el as necessary 2 ### update-autoloads.sh --- update auto-loaddefs.el as necessary
3 3
4 set -eu 4 set -eu
5 5
6 # This means we're running in a Sun workspace 6 # This means we're running in a Sun workspace
7 test -d ../era-specific && cd ../editor 7 test -d ../era-specific && cd ../editor
21 REAL=`cd \`dirname $EMACS\` ; pwd | sed 's|^/tmp_mnt||'`/`basename $EMACS` 21 REAL=`cd \`dirname $EMACS\` ; pwd | sed 's|^/tmp_mnt||'`/`basename $EMACS`
22 22
23 echo "Recompiling in `pwd|sed 's|^/tmp_mnt||'`" 23 echo "Recompiling in `pwd|sed 's|^/tmp_mnt||'`"
24 echo " with $REAL..." 24 echo " with $REAL..."
25 25
26 $EMACS -batch -q -f batch-update-autoloads \ 26 dirs=
27 `ls lisp | egrep -v \ 27 for dir in lisp/* ; do
28 "ChangeLog|CVS|COPYING|README|SCCS|egg|eterm|its|mule|paths.el|quail|version.el|vms" \ 28 if test -d $dir \
29 | xargs -i echo lisp/\{\}` 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