Skip to content

Commit

Permalink
Replace dots in attribute names with underscores.
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Ulrich <[email protected]>
  • Loading branch information
the-kenny committed Jul 17, 2013
1 parent 32557d9 commit fd12691
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion maintainers/scripts/generate-emacs-packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@
(cl-case (package-desc-kind package-spec) (tar ".tar") (single ".el"))))

(defun nix-normalize-package-name (package-name)
(intern (replace-regexp-in-string "+" "-plus" (symbol-name package-name))))
(intern (replace-regexp-in-string
"\\+" "-plus"
(replace-regexp-in-string
"\\." "_"
(symbol-name package-name)))))

(defun nix-make-deps-string (deps available-packages)
(concat
Expand Down

0 comments on commit fd12691

Please sign in to comment.