summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'eclass/elisp-common.eclass')
-rw-r--r--eclass/elisp-common.eclass18
1 files changed, 11 insertions, 7 deletions
diff --git a/eclass/elisp-common.eclass b/eclass/elisp-common.eclass
index e308b6432270..a7c574a29ce6 100644
--- a/eclass/elisp-common.eclass
+++ b/eclass/elisp-common.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.61 2009/05/25 16:25:32 fauli Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.62 2009/10/08 10:50:35 ulm Exp $
#
# Copyright 2002-2004 Matthew Kennedy <mkennedy@gentoo.org>
# Copyright 2003 Jeremy Maitin-Shepard <jbms@attbi.com>
@@ -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}"
+ 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,12 +208,13 @@ elisp-make-autoload-file() {
;; DO NOT EDIT THIS FILE
;;; Code:
- FF
- ;; Local Variables:
+ ${page}
+ ;; Local ${null}Variables:
;; version-control: never
;; no-byte-compile: t
;; no-update-autoloads: t
;; End:
+
;;; ${f##*/} ends here
EOF
@@ -282,7 +283,7 @@ elisp-site-file-install() {
# location is still supported when generating site-gentoo.el.
elisp-site-regen() {
- local i sf line obsolete
+ local i sf line obsolete null="" page=$'\f'
local -a sflist
if [ ! -d "${ROOT}${SITELISP}" ]; then
@@ -336,9 +337,12 @@ elisp-site-regen() {
(provide 'site-gentoo)
- ;; Local Variables:
+ ${page}
+ ;; Local ${null}Variables:
;; no-byte-compile: t
+ ;; buffer-read-only: t
;; End:
+
;;; site-gentoo.el ends here
EOF