Mercurial > hg > xemacs-beta
annotate lib-src/add-big-package.sh @ 5574:d4f334808463
Support inlining labels, bytecomp.el.
lisp/ChangeLog addition:
2011-10-02 Aidan Kehoe <kehoea@parhasard.net>
* bytecomp.el (byte-compile-initial-macro-environment):
Add #'declare to this, so it doesn't need to rely on
#'cl-compiling file to determine when we're byte-compiling.
Update #'labels to support declaring labels inline, as Common Lisp
requires.
* bytecomp.el (byte-compile-function-form):
Don't error if FUNCTION is quoting a non-lambda, non-symbol, just
return it.
* cl-extra.el (cl-macroexpand-all):
If a label name has been quoted, expand to the label placeholder
quoted with 'function. This allows the byte compiler to
distinguish between uses of the placeholder as data and uses in
contexts where it should be inlined.
* cl-macs.el:
* cl-macs.el (cl-do-proclaim):
When proclaming something as inline, if it is bound as a label,
don't modify the symbol's plist; instead, treat the first element
of its placeholder constant vector as a place to store compile
information.
* cl-macs.el (declare):
Leave processing declarations while compiling to the
implementation of #'declare in
byte-compile-initial-macro-environment.
tests/ChangeLog addition:
2011-10-02 Aidan Kehoe <kehoea@parhasard.net>
* automated/lisp-tests.el:
* automated/lisp-tests.el (+):
Test #'labels and inlining.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sun, 02 Oct 2011 15:32:16 +0100 |
parents | 308d34e9f07d |
children |
rev | line source |
---|---|
428 | 1 #! /bin/sh |
2 # add-big-package.sh --- Add multiple file package to Package Lisp Hierarchy | |
3 # Copyright (C) 1997 Free Software Foundation, Inc. | |
4 | |
5 # Author: SL Baur <steve@xemacs.org> | |
6 # Maintainer: SL Baur <steve@xemacs.org> | |
7 # Keywords: packages internal | |
8 | |
9 # This file is part of XEmacs. | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
428
diff
changeset
|
10 # |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
428
diff
changeset
|
11 # XEmacs is free software: you can redistribute it and/or modify it |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
428
diff
changeset
|
12 # under the terms of the GNU General Public License as published by the |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
428
diff
changeset
|
13 # Free Software Foundation, either version 3 of the License, or (at your |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
428
diff
changeset
|
14 # option) any later version. |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
428
diff
changeset
|
15 # |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
428
diff
changeset
|
16 # XEmacs is distributed in the hope that it will be useful, but WITHOUT |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
428
diff
changeset
|
17 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
428
diff
changeset
|
18 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
428
diff
changeset
|
19 # for more details. |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
428
diff
changeset
|
20 # |
428 | 21 # You should have received a copy of the GNU General Public License |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
428
diff
changeset
|
22 # along with XEmacs. If not, see <http://www.gnu.org/licenses/>. |
428 | 23 |
24 ### Commentary: | |
25 | |
26 ## This file copies a single lisp file into an XEmacs package hierarchy and | |
27 ## performs the necessary magic so that it will be autoloaded at the next | |
28 ## dump. | |
29 | |
30 ## Parameters: | |
31 ## $1 -- Full path to an XEmacsen later than 20.3 | |
32 ## $2 -- Full path to a lisp package tarball to install | |
33 ## $3 -- Full path to a lisp directory in an XEmacs package hierarchy | |
34 ## This directory will be created if it does not exist. | |
35 ## NOTE: the directory name should *not* end in a trailing slash | |
36 | |
37 | |
38 ### Code: | |
39 | |
40 XEMACS="$1" # Not used at present | |
41 LISP_FILE="$2" # Should be a binary package tarball | |
42 DEST_DIR="$3" # Should be a top level package directory | |
43 | |
44 # Test for valid XEmacs executable and valid input file | |
45 if [ ! -f "${LISP_FILE}" -o ! -x "${XEMACS}" ]; then | |
46 exit 1 | |
47 fi | |
48 | |
49 # Test for destination directory, creating if necessary | |
50 test -d "${DEST_DIR}" || mkdir "${DEST_DIR}" | |
51 test -d "${DEST_DIR}" || exit 1; | |
52 | |
53 # Very simple minded extraction for the first cut | |
54 # We'll get more sophisticated later | |
55 cd "${DEST_DIR}" | |
56 gunzip -c "${LISP_FILE}" | tar xvf - | |
57 | |
58 # Need to refresh the info/dir file, I don't know how to do that. | |
59 | |
60 exit 0 | |
61 | |
62 ### add-big-package.sh ends here |