diff options
author | Ulrich Müller <ulm@gentoo.org> | 2009-09-27 10:39:16 +0000 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2009-09-27 10:39:16 +0000 |
commit | 820378504fe6c650dc659daecdd65d884a2ea72a (patch) | |
tree | 984d70883741e8c2dcca8925677456c8d47d9425 /eclass | |
parent | Fix typo, bug 285045. (diff) | |
download | emacs-820378504fe6c650dc659daecdd65d884a2ea72a.tar.gz emacs-820378504fe6c650dc659daecdd65d884a2ea72a.tar.bz2 emacs-820378504fe6c650dc659daecdd65d884a2ea72a.zip |
Use variable instead of sed substitution for new page.
svn path=/emacs-overlay/; revision=1452
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/ChangeLog | 6 | ||||
-rw-r--r-- | eclass/elisp-common.eclass | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog index f67069d..1558697 100644 --- a/eclass/ChangeLog +++ b/eclass/ChangeLog @@ -1,3 +1,9 @@ +2009-09-27 Ulrich Mueller <ulm@gentoo.org> + + * elisp-common.eclass (elisp-make-autoload-file): Don't substitute + the "new page" character with sed, since the string could occur in + the package name. Use a shell variable instead. + 2009-09-15 Ulrich Mueller <ulm@gentoo.org> * elisp.eclass (elisp_src_compile): Fix typo, bug 285045. diff --git a/eclass/elisp-common.eclass b/eclass/elisp-common.eclass index 2ae7d3e..228e606 100644 --- a/eclass/elisp-common.eclass +++ b/eclass/elisp-common.eclass @@ -196,11 +196,11 @@ elisp-emacs-version() { # Generate a file with autoload definitions for the lisp functions. elisp-make-autoload-file() { - local f="${1:-${PN}-autoloads.el}" null="" + local f="${1:-${PN}-autoloads.el}" null="" page=$'\f' shift ebegin "Generating autoload file for GNU Emacs" - sed 's/^FF/\f/' >"${f}" <<-EOF + cat >"${f}" <<-EOF ;;; ${f##*/} --- autoloads for ${P} ;;; Commentary: @@ -208,7 +208,7 @@ elisp-make-autoload-file() { ;; DO NOT EDIT THIS FILE ;;; Code: - FF + ${page} ;; Local ${null}Variables: ;; version-control: never ;; no-byte-compile: t |