2 # Copyright (C) 1995, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
4 scriptversion
=2005-05-14.22
6 # Franc,ois Pinard <pinard@iro.umontreal.ca>, 1995.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 3, or (at your option)
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that program.
26 # This file is maintained in Automake, please report
27 # bugs to <bug-automake@gnu.org> or send patches to
28 # <automake-patches@gnu.org>.
32 echo "$0: No files. Try \`$0 --help' for more information." 1>&2
37 Usage
: elisp-comp
[--help] [--version] FILES...
39 This
script byte-compiles all
`.el' files listed as FILES using GNU
40 Emacs, and put the resulting `.elc
' files into the current directory,
41 so disregarding the original directories used in `.el' arguments.
43 This
script manages
in such a way that all Emacs LISP files to
44 be compiled are made visible between themselves
, in the event
45 they require or load-library one another.
47 Report bugs to
<bug-automake@gnu.org
>.
52 echo "elisp-comp $scriptversion"
57 if test -z "$EMACS" ||
test "$EMACS" = "t"; then
58 # Value of "t" means we are running in a shell under Emacs.
59 # Just assume Emacs is called "emacs".
65 # Cleanup the temporary directory on exit.
66 trap 'ret=$?; rm -rf "$tempdir" && exit $ret' 0
67 trap '(exit $?); exit' 1 2 13 15
74 echo "(setq load-path (cons nil load-path))" > script
75 $EMACS -batch -q -l script -f batch-byte-compile
*.el ||
exit $?
84 # eval: (add-hook 'write-file-hooks 'time-stamp)
85 # time-stamp-start: "scriptversion="
86 # time-stamp-format: "%:y-%02m-%02d.%02H"