Mercurial > hg > xemacs-beta
comparison lib-src/update-autoloads.sh @ 2:ac2d302a0011 r19-15b2
Import from CVS: tag r19-15b2
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:46:35 +0200 |
parents | 376386a54a3c |
children | bcdc7deadc19 |
comparison
equal
deleted
inserted
replaced
1:c0c6a60d29db | 2:ac2d302a0011 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 ### update-autoloads.sh --- update loaddefs.el as necessary | 2 ### update-autoloads.sh --- update loaddefs.el as necessary |
3 | |
4 # Author: Jamie Zawinski <jwz@lucid.com> | |
5 # Maintainer: Ben Wing <ben.wing@Eng.Sun.COM> | |
6 # Created: ? | |
7 # Version: 1.0 | |
8 # Modified: 94/07/13 16:18:44 | |
9 # Keywords: recompile .el .elc | |
10 | |
11 ### Commentary: | |
12 ## Recompile all .elc files that need recompilation. Requires a working | |
13 ## version of 'xemacs'. Correctly handles the case where the .elc files | |
14 ## are missing; thus you can execute 'rm lisp/*/*.elc' before running | |
15 ## this script. Run this from the parent directory of 'src', 'lisp', | |
16 ## and 'etc'. (If this is a Sun workspace, you can run it from | |
17 ## 'era-specific' instead.) | |
18 | 3 |
19 set -eu | 4 set -eu |
20 | 5 |
21 # This means we're running in a Sun workspace | 6 # This means we're running in a Sun workspace |
22 if [ -d ../era-specific ]; then | 7 if [ -d ../era-specific ]; then |
36 EMACS=./src/xemacs | 21 EMACS=./src/xemacs |
37 echo " (using $EMACS)" | 22 echo " (using $EMACS)" |
38 | 23 |
39 export EMACS | 24 export EMACS |
40 | 25 |
41 # fuckin' sysv, man... | |
42 if [ "`uname -r | sed 's/\(.\).*/\1/'`" -gt 4 ]; then | |
43 echon() | |
44 { | |
45 /bin/echo $* '\c' | |
46 } | |
47 else | |
48 echon() | |
49 { | |
50 echo -n $* | |
51 } | |
52 fi | |
53 | |
54 REAL=`cd \`dirname $EMACS\` ; pwd | sed 's|^/tmp_mnt||'`/`basename $EMACS` | 26 REAL=`cd \`dirname $EMACS\` ; pwd | sed 's|^/tmp_mnt||'`/`basename $EMACS` |
55 | 27 |
56 echo "Recompiling in `pwd|sed 's|^/tmp_mnt||'`" | 28 echo "Recompiling in `pwd|sed 's|^/tmp_mnt||'`" |
57 echo " with $REAL..." | 29 echo " with $REAL..." |
58 | 30 |
59 src/xemacs -batch -q -f batch-update-autoloads \ | 31 $EMACS -batch -q -f batch-update-autoloads \ |
60 `ls lisp | egrep -v \ | 32 `ls lisp | egrep -v \ |
61 "COPYING|README|SCCS|egg|eterm|its|mule|paths.el|quail|version.el|vms" \ | 33 "COPYING|README|SCCS|egg|eterm|its|mule|paths.el|quail|version.el|vms" \ |
62 | xargs -i echo lisp/\{\}` | 34 | xargs -i echo lisp/\{\}` |