Commit graph

195 commits

Author SHA1 Message Date
Steve Purcell
53c0639d2a Don't enable any local variables while building packages
See bbatsov/zenburn-emacs#107
2013-05-13 15:47:16 +01:00
Steve Purcell
8a1a7f521f Adjust description line in package-build.el 2013-05-13 08:16:19 +01:00
Donald Curtis
05f660e639 add :exclude handler
closes #709
2013-05-11 18:27:10 -05:00
Steve Purcell
d9ccbfc38d Just add "[wiki]" etc to package descriptions, not "[source: wiki]" 2013-05-09 12:32:36 +01:00
Donald Curtis
9e60d5e557 look for -pkg.el.in file in pkg-source directory
in case the `package.el` file is located in a subdirectory of the repository, we should look for the `package-pkg.el.in` file in that subdirectory.
2013-05-02 21:34:41 -05:00
Steve Purcell
ba91624a44 Update copyright dates 2013-04-25 12:10:51 +01:00
Steve Purcell
54da4472bf Merge pull request #645 from milkypostman/cl-lib
Switch from cl to cl-lib
2013-04-08 01:10:39 -07:00
Donald Curtis
4f70dda369 don't delete the archive until a proper checkout, in case of error 2013-04-07 23:59:24 -05:00
Steve Purcell
aca476a4f8 Switch from cl to cl-lib 2013-04-07 15:29:04 -05:00
Steve Purcell
dd4983d59c Slightly tidier code for rewriting Version -> X-Original-Version 2013-04-07 11:05:06 +01:00
Steve Purcell
8302f8d308 Save upstream Version header line as X-Original-Version
Closes #659
2013-04-07 11:02:27 +01:00
Donald Curtis
8d535c49ca make remove message go do stderr 2013-04-01 12:43:10 -05:00
Steve Purcell
832741b2bb Fix elint warnings about error symbol in condition-case 2013-03-31 12:25:47 +01:00
Donald Curtis
1de33588fc always remove the old archive before rebuilding 2013-03-28 17:12:52 -05:00
Donald Curtis
c7eb3ce90b improve removing of an archive
- removing an archive removes the file but doesn't dump the archive-contents each time
- removing an archive also removes the corresponding readme file
2013-03-28 17:12:52 -05:00
Donald Curtis
d2de69278e use archive-file-name for find-package-file
removes some duplicated functionality
2013-03-28 17:12:52 -05:00
Donald Curtis
27a8d21c6f add initialization variables for the internal lists since they can be nil 2013-03-28 17:12:52 -05:00
Steve Purcell
98663a34f8 Just warn if single-file packages are non-compliant
(Closes #625)
2013-03-28 20:05:25 +00:00
Steve Purcell
0dca11c434 Ensure backup files are not created during single-file package build 2013-03-28 15:31:34 +00:00
Steve Purcell
52de0cde23 Add "foo.el ends here" trailing lines to single-file pkgs if missing
See #625
2013-03-28 15:22:15 +00:00
Steve Purcell
3e2e2e059e Restrict local variables when opening package source files 2013-03-28 13:50:57 +00:00
Steve Purcell
a3d2ea68e3 Generate hard build errors when single-file packages are invalid 2013-03-28 11:13:24 +00:00
Steve Purcell
5893fb850e Print warning when a single-file package fails package-buffer-info 2013-03-27 19:35:45 +00:00
Steve Purcell
4e5b2905b4 Preserve line-ending encoding of single-file packages
See #619
2013-03-27 18:22:09 +00:00
Steve Purcell
919bb8bb32 Don't insert-file-literally with single-file packages
See #619
2013-03-27 18:12:57 +00:00
Steve Purcell
41c3ab7c49 After interactively building a package, prompt to install locally 2013-03-26 21:09:50 +00:00
Steve Purcell
58bf468f42 When writing single-file packages, update Version header
Closes #588
2013-03-26 20:24:02 +00:00
Steve Purcell
da15f0e6c7 Merge pull request #607 from milkypostman/create-recipe-helpers
Helpers for recipe authors
2013-03-26 01:10:04 -07:00
Steve Purcell
7828be20df Extract new pb/update-or-insert-version function 2013-03-25 14:23:47 +00:00
Steve Purcell
b2609a0a01 Extract default :files spec to a defconst 2013-03-24 13:17:25 +00:00
Steve Purcell
ae77c7ff77 Helpers for recipe authors
- Add helper function `package-build-create-recipe`
- Add `package-build-minor-mode`, enabled for recipes: C-c C-c builds current recipe
- Opening recipe files causes `package-build` to get loaded, and
  `package-build-minor-mode` to get enabled
2013-03-24 13:10:45 +00:00
Steve Purcell
9d78285d60 Pop up the archive-contents buffer after package-build-current-recipe 2013-03-24 11:28:42 +00:00
Steve Purcell
cafc402e71 Add "dir" and "*.info" to the default :files spec
Since most packages do not have `dir` or `*.info` files, this required
changing the behaviour when a wildcard entry in `:file` expands to an
empty file list. Previously, an error would be raised in this case; now,
an error is raised only when the *entire* `:files` spec expands to an
empty file list.

The slight danger, then, is that certain build failures due to upstream
reorganisation of files might be less obvious.
2013-03-13 21:00:24 +00:00
Donald Curtis
23d30ceb0a implement a better lazy loading of internal variables 2013-03-11 07:10:15 -05:00
Donald Curtis
0c0ee353e5 more typos... 2013-01-07 17:03:53 -06:00
Donald Curtis
2db7514abf add missing initialize 2013-01-07 10:17:25 -06:00
Steve Purcell
c608db9192 Fix typo in package-build-reinitialize 2012-12-31 19:15:02 +00:00
Donald Curtis
4a526a4128 fix bug additional bug related to single builds
Because of some missing (package-build-initialize) calls, which were
mistyped, certain areas were not working. This fixes a few more of those typos.
2012-12-31 02:49:38 -06:00
Donald Curtis
8ec4cf3e2e fix typo for initialization 2012-12-31 02:43:37 -06:00
Donald Curtis
c547ed422d make read-recipe validate recipes 2012-12-30 22:28:03 -06:00
Donald Curtis
fb204b6429 add delayed initialization
the package-initialize function will not be called until it is needed.
by default this will be in any function that requires the variables
which it initializes. there is also a check so that the variables are
not repeatedly initialized.
2012-12-30 22:27:59 -06:00
Steve Purcell
3ee7f9f6aa Use string-equals to compare wiki content hashes, not eq 2012-12-11 11:01:05 +00:00
Steve Purcell
01fd9ddcfc Improve debug message output, and include build durations and timestamps 2012-12-05 14:08:40 +00:00
Steve Purcell
00236212d1 Store content hashes and timestamps for emacswiki files to minimise requests
If we can determine whether an emacswiki .el file has changed since
the last download, we can usually skip the follow-up request to
determine its last-modified timestamp.
2012-12-04 20:29:56 +00:00
Steve Purcell
00989cef16 Require lisp-mnt at the top level to avoid byte-compilation warnings 2012-12-04 20:29:56 +00:00
Steve Purcell
27f863039b Don't complain about use of cl functions 2012-12-02 16:06:14 +00:00
Steve Purcell
db731db9d9 Fix byte compilation warning; use string-to-number instead of nonexistent parse-integer 2012-12-02 16:05:44 +00:00
Dmitry Gutov
bcd3ee7a02 The empty line(s) can be commented out or have whitespace 2012-11-29 09:36:12 +04:00
Dmitry Gutov
b66ca67da6 Remove the leading blank line in the readmes 2012-11-29 09:19:05 +04:00
Donald Curtis
521ccf03e0 Write the readme.txt files
Fixes #306
2012-11-09 10:51:29 -06:00