Mercurial > hg > octave-lojdl > gnulib-hg
annotate build-aux/elisp-comp @ 16464:2a3849cfe7b9
Tests for module 'modf-ieee'.
* modules/modf-ieee-tests: New file.
* tests/test-modf-ieee.c: New file.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 26 Feb 2012 17:55:21 +0100 |
parents | c149bb2eb2b7 |
children |
rev | line source |
---|---|
7196
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
1 #!/bin/sh |
16376 | 2 # Copyright (C) 1995-2012 Free Software Foundation, Inc. |
7196
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
3 |
12852 | 4 scriptversion=2010-02-06.18; # UTC |
7196
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
5 |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
6 # Franc,ois Pinard <pinard@iro.umontreal.ca>, 1995. |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
7 # |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
8 # This program is free software; you can redistribute it and/or modify |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
9 # it under the terms of the GNU General Public License as published by |
11576 | 10 # the Free Software Foundation; either version 2, or (at your option) |
7196
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
11 # any later version. |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
12 # |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
13 # This program is distributed in the hope that it will be useful, |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
16 # GNU General Public License for more details. |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
17 # |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
18 # You should have received a copy of the GNU General Public License |
9640 | 19 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
7196
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
20 |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
21 # As a special exception to the GNU General Public License, if you |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
22 # distribute this file as part of a program that contains a |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
23 # configuration script generated by Autoconf, you may include it under |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
24 # the same distribution terms that you use for the rest of that program. |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
25 |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
26 # This file is maintained in Automake, please report |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
27 # bugs to <bug-automake@gnu.org> or send patches to |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
28 # <automake-patches@gnu.org>. |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
29 |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
30 case $1 in |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
31 '') |
16248 | 32 echo "$0: No files. Try '$0 --help' for more information." 1>&2 |
7196
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
33 exit 1; |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
34 ;; |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
35 -h | --h*) |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
36 cat <<\EOF |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
37 Usage: elisp-comp [--help] [--version] FILES... |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
38 |
16248 | 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. | |
7196
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
42 |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
43 This script manages in such a way that all Emacs LISP files to |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
44 be compiled are made visible between themselves, in the event |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
45 they require or load-library one another. |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
46 |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
47 Report bugs to <bug-automake@gnu.org>. |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
48 EOF |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
49 exit $? |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
50 ;; |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
51 -v | --v*) |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
52 echo "elisp-comp $scriptversion" |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
53 exit $? |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
54 ;; |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
55 esac |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
56 |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
57 if test -z "$EMACS" || test "$EMACS" = "t"; then |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
58 # Value of "t" means we are running in a shell under Emacs. |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
59 # Just assume Emacs is called "emacs". |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
60 EMACS=emacs |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
61 fi |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
62 |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
63 tempdir=elc.$$ |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
64 |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
65 # Cleanup the temporary directory on exit. |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
66 trap 'ret=$?; rm -rf "$tempdir" && exit $ret' 0 |
12852 | 67 do_exit='(exit $ret); exit $ret' |
68 trap "ret=129; $do_exit" 1 | |
69 trap "ret=130; $do_exit" 2 | |
70 trap "ret=141; $do_exit" 13 | |
71 trap "ret=143; $do_exit" 15 | |
7196
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
72 |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
73 mkdir $tempdir |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
74 cp "$@" $tempdir |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
75 |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
76 ( |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
77 cd $tempdir |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
78 echo "(setq load-path (cons nil load-path))" > script |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
79 $EMACS -batch -q -l script -f batch-byte-compile *.el || exit $? |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
80 mv *.elc .. |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
81 ) || exit $? |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
82 |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
83 (exit 0); exit 0 |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
84 |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
85 # Local Variables: |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
86 # mode: shell-script |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
87 # sh-indentation: 2 |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
88 # eval: (add-hook 'write-file-hooks 'time-stamp) |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
89 # time-stamp-start: "scriptversion=" |
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
90 # time-stamp-format: "%:y-%02m-%02d.%02H" |
11552 | 91 # time-stamp-time-zone: "UTC" |
92 # time-stamp-end: "; # UTC" | |
7196
c49e5940a04f
* MODULES.html.sh (Support for building libraries and executables):
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
93 # End: |