comparison lib-src/update-autoloads.sh @ 12:bcdc7deadc19 r19-15b7

Import from CVS: tag r19-15b7
author cvs
date Mon, 13 Aug 2007 08:48:16 +0200
parents ac2d302a0011
children 131b0175ea99
comparison
equal deleted inserted replaced
11:91ffe8bd52e4 12:bcdc7deadc19
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 if [ -d ../era-specific ]; then 7 if [ -d ../era-specific ]; then
26 REAL=`cd \`dirname $EMACS\` ; pwd | sed 's|^/tmp_mnt||'`/`basename $EMACS` 26 REAL=`cd \`dirname $EMACS\` ; pwd | sed 's|^/tmp_mnt||'`/`basename $EMACS`
27 27
28 echo "Recompiling in `pwd|sed 's|^/tmp_mnt||'`" 28 echo "Recompiling in `pwd|sed 's|^/tmp_mnt||'`"
29 echo " with $REAL..." 29 echo " with $REAL..."
30 30
31 $EMACS -batch -q -f batch-update-autoloads \ 31 dirs=
32 `ls lisp | egrep -v \ 32 for dir in lisp/* ; do
33 "COPYING|README|SCCS|egg|eterm|its|mule|paths.el|quail|version.el|vms" \ 33 if test -d $dir \
34 | xargs -i echo lisp/\{\}` 34 -a $dir != lisp/CVS \
35 -a $dir != lisp/SCCS \
36 -a $dir != lisp/egg \
37 -a $dir != lisp/eterm \
38 -a $dir != lisp/its \
39 -a $dir != lisp/mule \
40 -a $dir != lisp/quail \
41 -a $dir != lisp/vms ; then
42 dirs="$dirs $dir"
43 fi
44 done
45 cat > lisp/prim/auto-autoloads.el << EOF
46 ;;; Do NOT edit this file!
47 ;;; It is automatically generated using "make autoloads"
48 ;;; See update-autoloads.sh and autoload.el for more details.
49
50 EOF
51 set -x
52 $EMACS -batch -q -l autoload -f batch-update-autoloads $dirs