Skip to content

Commit

Permalink
Include *.el.in in the default files list, and rename to .el on copy
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Jul 22, 2013
1 parent 27a26f8 commit d1c217a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions package-build.el
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function for access to this function")
(defvar pb/archive-alist-initialized nil
"Determines if pb/archive-alist has been initialized.")

(defconst pb/default-files-spec '("*.el" "dir"
(defconst pb/default-files-spec '("*.el" "*.el.in" "dir"
"*.info" "*.texi" "*.texinfo"
"doc/*.info" "doc/*.texi" "doc/*.texinfo"
(:exclude "*-test.el" "*-tests.el"))
Expand Down Expand Up @@ -662,7 +662,13 @@ file path and DEST is the relative path to which it should be copied."
(concat prefix (car entry)))))
(nconc
lst (mapcar (lambda (f)
(cons f (concat prefix (file-name-nondirectory f))))
(let ((destname)))
(cons f
(concat prefix
(replace-regexp-in-string
"\\.in\\'"
""
(file-name-nondirectory f)))))
(file-expand-wildcards entry))))))))


Expand Down

0 comments on commit d1c217a

Please sign in to comment.