Commit graph

166 commits

Author SHA1 Message Date
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
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
Steve Purcell
4b451f5dc7 Handle newer CVS date formats like "2001/08/26 22:16:22" which break date-to-time 2012-10-20 20:22:28 +01:00
Steve Purcell
a69ee2af7e Force UTC timezone for cvs log 2012-10-20 20:21:52 +01:00
Donald Curtis
e20c3159ec default head branch to "master" 2012-09-16 19:23:39 -05:00
Donald Curtis
87346e3cc1 Reset git repos to the HEAD branch on the remote.
Not all repositories use 'master' as the name of the master branch. Therefore, we need to query the remote server and see which branch is actually supposed to be tracked by default.
2012-09-16 18:11:21 -05:00
Steve Purcell
3a354296db Display the "waiting" time between EmacsWiki requests using fewer decimal places 2012-09-16 09:01:53 +01:00
Steve Purcell
5a96d65f6e Update git working dirs by using "remote update" then "reset --hard", in case of upstream forces 2012-09-15 20:27:09 +01:00
Steve Purcell
fed0c212bd Introduce pb/slurp-file, and use it to remove some duplication 2012-09-15 13:14:52 +01:00
Steve Purcell
3c4546c6e8 Remove debugging output for date parsing (causes too many messages when scanning cvs logs) 2012-09-15 13:13:55 +01:00
Sebastian Wiesner
9592064902 Rename :cvs-module to :module 2012-09-15 13:55:15 +02:00
Sebastian Wiesner
9590a38d35 [#177] Add support for CVS 2012-09-14 18:35:16 +02:00
Steve Purcell
9ddf14d643 If the last update to a package was at midnight, ensure the HHMM part of version is "0", not ""
See purcell/emacs.d#47
2012-09-06 14:23:41 +01:00
Steve Purcell
55139921af Don't just remove *one* padding zero if there are two 2012-09-01 17:23:25 +01:00
Steve Purcell
84f54dd5fe Ensure no zero-padding is used in the HHMM portion of version strings 2012-09-01 15:37:26 +01:00
Steve Purcell
efdbd825d5 Add .HHMM to versions so changes to frequently-updated packages can be detected (fixes #250) 2012-09-01 14:02:23 +01:00
Steve Purcell
84bd0175dc Autoload a couple of the main interactive functions 2012-08-11 11:43:10 +01:00
Steve Purcell
a0e1212b3f Add handy interactive package-build-current-recipe function 2012-08-11 11:42:44 +01:00
Steve Purcell
fdae5acf11 Use archive.json to populate the html package index, rather than ad-hoc sexp parsing 2012-07-25 14:01:04 +01:00
Donald Curtis
e13825d49a add a newline at the end of output 2012-07-24 17:11:15 -05:00
Georgi Valkov
3f533208c5 Add functions that export to json
The list of recipies and the packages in the archive can be serialized
to json with:
 - package-build-alist-as-json
 - package-build-archive-alist-as-json

The json files can be used to simplify the generation of the html index
or serve as some form of API for non-lisp clients.
2012-07-21 15:31:47 -05:00
Donald Curtis
605b7a0ac7 Search files for "-pkg.el" file.
This will fix problems when the "-pkg.el" file is located in a
subdirectory as long as that file is included in the ":files" list
specified by the recipe, which *should* be the case anyways because
you would want that file installed as part of the package.
2012-07-03 12:22:45 -05:00
Donald Curtis
6c467379c2 don't downcase names of packages 2012-05-29 14:53:19 -05:00
Donald Curtis
42ac78dad8 Ignore duplicate files in tar.
Sometimes the name-pkg.el file is included but gets included twice
because we also add our own version. This causes problems when
installing.  The `tar' will list both files and extract only one and
the tar mode for Emacs doesn't behave nicely.
2012-05-14 10:02:37 -05:00
Steve Purcell
e487e9ebf1 Enforce checkdoc-minor-mode 2012-05-07 11:43:21 +01:00
Donald Curtis
e456ea3cbf Hotfix to let build continue after error. 2012-05-06 08:21:44 -05:00
Steve Purcell
73cd32ccae Make 'package-build-archive-ignore-errors prompt for package name when called interactively 2012-05-06 12:13:12 +01:00
Steve Purcell
8be7c714c7 Simplify the functions dealing with source/dest file paths (see #97)
This commit introduces pb/expand-file-specs, which expands a :files
list into a list of (SOURCE . DEST) pairs -- SOURCE is the relative
path of a source file or directory, and DEST is the relative path to
which it should be copied. By mapcar'ing this list, it's then easy to
get lists of the source and destination files, and copying files
becomes as easy as copying each SOURCE to its corresponding DEST.
2012-05-06 09:48:13 +01:00
Steve Purcell
c9220870ed Normalise the file-list functions so they can be assessed for similarities 2012-05-06 09:48:13 +01:00
Steve Purcell
c269f0ef82 Remove some duplication by introducing pb/expand-source-file-list 2012-05-05 08:48:17 +01:00
Steve Purcell
8e8696fa14 Use idiomatic "not" in place of "(zerop (length lst))" 2012-05-04 20:34:28 +01:00