aboutsummaryrefslogtreecommitdiffstats
path: root/admin/admin.el
diff options
context:
space:
mode:
authorStefan Monnier2011-01-14 12:18:41 -0500
committerStefan Monnier2011-01-14 12:18:41 -0500
commit77ab81d0545e980c57c0a35510ade29a9e43b4cd (patch)
tree258514dac7faab41642d8f319eb113c8a5f09690 /admin/admin.el
parent8faba62c38f67693535c3471d867e66757b3b04e (diff)
parentfb724e553757e9d3344be443ab5f329afc9bf91c (diff)
downloademacs-77ab81d0545e980c57c0a35510ade29a9e43b4cd.tar.gz
emacs-77ab81d0545e980c57c0a35510ade29a9e43b4cd.zip
Merge from emacs-23
Diffstat (limited to 'admin/admin.el')
-rw-r--r--admin/admin.el26
1 files changed, 18 insertions, 8 deletions
diff --git a/admin/admin.el b/admin/admin.el
index 7cd2c02fb58..4387aecdde7 100644
--- a/admin/admin.el
+++ b/admin/admin.el
@@ -1,7 +1,7 @@
1;;; admin.el --- utilities for Emacs administration 1;;; admin.el --- utilities for Emacs administration
2 2
3;; Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 3;; Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
4;; 2010 Free Software Foundation, Inc. 4;; 2010, 2011 Free Software Foundation, Inc.
5 5
6;; This file is part of GNU Emacs. 6;; This file is part of GNU Emacs.
7 7
@@ -160,7 +160,6 @@ Root must be the root of an Emacs source tree."
160 version (rx (and "Version=" (submatch (1+ (in "0-9."))))))) 160 version (rx (and "Version=" (submatch (1+ (in "0-9.")))))))
161 161
162;; Note this makes some assumptions about form of short copyright. 162;; Note this makes some assumptions about form of short copyright.
163;; FIXME add the \year in the refcards/*.tex files.
164(defun set-copyright (root copyright) 163(defun set-copyright (root copyright)
165 "Set Emacs short copyright to COPYRIGHT in relevant files under ROOT. 164 "Set Emacs short copyright to COPYRIGHT in relevant files under ROOT.
166Root must be the root of an Emacs source tree." 165Root must be the root of an Emacs source tree."
@@ -174,16 +173,16 @@ Root must be the root of an Emacs source tree."
174 (error "%s doesn't seem to be the root of an Emacs source tree" root)) 173 (error "%s doesn't seem to be the root of an Emacs source tree" root))
175 (set-version-in-file root "src/emacs.c" copyright 174 (set-version-in-file root "src/emacs.c" copyright
176 (rx (and "emacs_copyright" (0+ (not (in ?\"))) 175 (rx (and "emacs_copyright" (0+ (not (in ?\")))
177 ?\" (submatch (1+ (not (in ?\")))) ?\"))) 176 ?\" (submatch (1+ (not (in ?\")))) ?\")))
178 (set-version-in-file root "lib-src/ebrowse.c" copyright 177 (set-version-in-file root "lib-src/ebrowse.c" copyright
179 (rx (and "emacs_copyright" (0+ (not (in ?\"))) 178 (rx (and "emacs_copyright" (0+ (not (in ?\")))
180 ?\" (submatch (1+ (not (in ?\")))) ?\"))) 179 ?\" (submatch (1+ (not (in ?\")))) ?\")))
181 (set-version-in-file root "lib-src/etags.c" copyright 180 (set-version-in-file root "lib-src/etags.c" copyright
182 (rx (and "emacs_copyright" (0+ (not (in ?\"))) 181 (rx (and "emacs_copyright" (0+ (not (in ?\")))
183 ?\" (submatch (1+ (not (in ?\")))) ?\"))) 182 ?\" (submatch (1+ (not (in ?\")))) ?\")))
184 (set-version-in-file root "lib-src/rcs2log" copyright 183 (set-version-in-file root "lib-src/rcs2log" copyright
185 (rx (and "Copyright" (0+ space) ?= (0+ space) 184 (rx (and "Copyright" (0+ space) ?= (0+ space)
186 ?\' (submatch (1+ nonl))))) 185 ?\' (submatch (1+ nonl)))))
187 ;; This one is a nuisance, as it needs to be split over two lines. 186 ;; This one is a nuisance, as it needs to be split over two lines.
188 (string-match "\\(.*[0-9]\\{4\\} *\\)\\(.*\\)" copyright) 187 (string-match "\\(.*[0-9]\\{4\\} *\\)\\(.*\\)" copyright)
189 ;; nextstep. 188 ;; nextstep.
@@ -199,7 +198,18 @@ Root must be the root of an Emacs source tree."
199 (set-version-in-file 198 (set-version-in-file
200 root "nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist" 199 root "nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist"
201 copyright (rx (and "Copyright" (0+ space) ?\= (0+ space) 200 copyright (rx (and "Copyright" (0+ space) ?\= (0+ space)
202 ?\" (submatch (1+ (not (in ?\")))))))) 201 ?\" (submatch (1+ (not (in ?\")))))))
202 (when (string-match "\\([0-9]\\{4\\}\\)" copyright)
203 (setq copyright (match-string 1 copyright))
204 (dolist (file (directory-files (expand-file-name "etc/refcards" root)
205 t "\\.tex\\'"))
206 (unless (string-match "gnus-refcard\\.tex" file)
207 (set-version-in-file
208 root file copyright
209 (concat (if (string-match "ru-refcard\\.tex" file)
210 "\\\\newcommand{\\\\cyear}\\[0\\]{"
211 "\\\\def\\\\year{")
212 "\\([0-9]\\{4\\}\\)}.+%.+copyright year"))))))
203 213
204(provide 'admin) 214(provide 'admin)
205 215