| 1 | # Copyright 1999-2007 Gentoo Foundation |
1 | # Copyright 1999-2007 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.20 2007/04/29 12:59:39 ulm Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.21 2007/05/26 08:34:08 ulm Exp $ |
| 4 | # |
4 | # |
| 5 | # Copyright 2007 Christian Faulhammer <opfer@gentoo.org> |
5 | # Copyright 2007 Christian Faulhammer <opfer@gentoo.org> |
| 6 | # Copyright 2002-2007 Matthew Kennedy <mkennedy@gentoo.org> |
6 | # Copyright 2002-2007 Matthew Kennedy <mkennedy@gentoo.org> |
| 7 | # Copyright 2003 Jeremy Maitin-Shepard <jbms@attbi.com> |
7 | # Copyright 2003 Jeremy Maitin-Shepard <jbms@attbi.com> |
| 8 | # Copyright 2007 Ulrich Mueller <ulm@gentoo.org> |
8 | # Copyright 2007 Ulrich Mueller <ulm@gentoo.org> |
| … | |
… | |
| 116 | } |
116 | } |
| 117 | |
117 | |
| 118 | elisp-make-autoload-file () { |
118 | elisp-make-autoload-file () { |
| 119 | local f="${1:-${PN}-autoloads.el}" |
119 | local f="${1:-${PN}-autoloads.el}" |
| 120 | shift |
120 | shift |
| 121 | echo >"${f}" |
121 | sed 's/^FF/\f/' >"${f}" <<-EOF |
|
|
122 | ;;; ${f##*/} --- autoloads for ${P} |
|
|
123 | |
|
|
124 | ;;; Commentary: |
|
|
125 | ;; Automatically generated by elisp-common.eclass |
|
|
126 | ;; DO NOT EDIT THIS FILE |
|
|
127 | |
|
|
128 | ;;; Code: |
|
|
129 | FF |
|
|
130 | ;; Local Variables: |
|
|
131 | ;; version-control: never |
|
|
132 | ;; no-byte-compile: t |
|
|
133 | ;; no-update-autoloads: t |
|
|
134 | ;; End: |
|
|
135 | ;;; ${f##*/} ends here |
|
|
136 | EOF |
| 122 | emacs --batch -q --no-site-file \ |
137 | emacs --batch -q --no-site-file \ |
| 123 | --eval "(setq make-backup-files nil)" \ |
138 | --eval "(setq make-backup-files nil)" \ |
| 124 | --eval "(setq generated-autoload-file (expand-file-name \"${f}\"))" \ |
139 | --eval "(setq generated-autoload-file (expand-file-name \"${f}\"))" \ |
| 125 | -f batch-update-autoloads "${@-.}" |
140 | -f batch-update-autoloads "${@-.}" |
| 126 | } |
141 | } |