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 | |
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')
-rw-r--r-- | eclass/ChangeLog | 3 | ||||
-rw-r--r-- | eclass/elisp-common.eclass | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog index 81a2546..9b3a9ff 100644 --- a/eclass/ChangeLog +++ b/eclass/ChangeLog @@ -3,7 +3,8 @@ * elisp-common.eclass (elisp-comp): Die. (elisp-site-file-install): Allow for extra version identifier in the name of the source file, i.e. install 50${PN}-gentoo-${PV}.el - as 50${PN}-gentoo.el. + as 50${PN}-gentoo.el. Output a warning if the file name doesn't + match a pattern that would be recognised by elisp-site-regen. 2009-03-17 Ulrich Mueller <ulm@gentoo.org> 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}" |