diff options
author | Ulrich Müller <ulm@gentoo.org> | 2009-03-23 16:49:48 +0000 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2009-03-23 16:49:48 +0000 |
commit | c0dba0ab95dea0d29b2031d21e074246ba8f916c (patch) | |
tree | 5a9f3284b4db054a19116b8fc448bcf064fae673 /eclass/elisp-common.eclass | |
parent | Reindent documentation at 72 columns (same as elisp.eclass) to make it better... (diff) | |
download | emacs-c0dba0ab95dea0d29b2031d21e074246ba8f916c.tar.gz emacs-c0dba0ab95dea0d29b2031d21e074246ba8f916c.tar.bz2 emacs-c0dba0ab95dea0d29b2031d21e074246ba8f916c.zip |
Output a warning for bad filenames.
svn path=/emacs-overlay/; revision=1342
Diffstat (limited to 'eclass/elisp-common.eclass')
-rw-r--r-- | eclass/elisp-common.eclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/eclass/elisp-common.eclass b/eclass/elisp-common.eclass index 0af3474..86a0a2d 100644 --- a/eclass/elisp-common.eclass +++ b/eclass/elisp-common.eclass @@ -250,6 +250,8 @@ elisp-install() { elisp-site-file-install() { local sf="${1##*/}" my_pn="${2:-${PN}}" ret + [[ ${sf} == [0-9][0-9]*-gentoo*.el ]] \ + || ewarn "elisp-site-file-install: bad name of site-init file" sf="${T}/${sf/%-gentoo*.el/-gentoo.el}" ebegin "Installing site initialisation file for GNU Emacs" cp "$1" "${sf}" |