diff options
| author | Glenn Morris | 2012-09-16 17:56:08 -0700 |
|---|---|---|
| committer | Glenn Morris | 2012-09-16 17:56:08 -0700 |
| commit | 78f83752f50a2aa9944e60a5aceac4015eb3ca58 (patch) | |
| tree | 48c1ff5a6e08a5d69ef36593de966018f229b01e | |
| parent | 48093eb9bca47488b6867e53a12e7cac37d6f5a6 (diff) | |
| download | emacs-78f83752f50a2aa9944e60a5aceac4015eb3ca58.tar.gz emacs-78f83752f50a2aa9944e60a5aceac4015eb3ca58.zip | |
Reduce the number of versioned files storing the short copyright string
* configure.ac (copyright): New output variable.
(COPYRIGHT): New AC_DEFINE.
* admin/admin.el (set-copyright): No more need to set copyrights for
nextstep, or .c files. Add configure.ac and config.nt.
* lib-src/ebrowse.c (version):
* lib-src/etags.c (print_version): Use COPYRIGHT.
* nextstep/templates/Info-gnustep.plist.in:
* nextstep/templates/InfoPlist.strings.in:
* nextstep/templates/Info.plist.in: Let configure set copyright.
* nt/config.nt (COPYRIGHT): New.
* src/emacs.c: Use COPYRIGHT.
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | admin/ChangeLog | 5 | ||||
| -rw-r--r-- | admin/admin.el | 28 | ||||
| -rw-r--r-- | configure.ac | 5 | ||||
| -rw-r--r-- | lib-src/ChangeLog | 5 | ||||
| -rw-r--r-- | lib-src/ebrowse.c | 3 | ||||
| -rw-r--r-- | lib-src/etags.c | 3 | ||||
| -rw-r--r-- | nextstep/ChangeLog | 5 | ||||
| -rw-r--r-- | nextstep/templates/Info-gnustep.plist.in | 2 | ||||
| -rw-r--r-- | nextstep/templates/Info.plist.in | 2 | ||||
| -rw-r--r-- | nextstep/templates/InfoPlist.strings.in | 2 | ||||
| -rw-r--r-- | nt/ChangeLog | 4 | ||||
| -rw-r--r-- | nt/config.nt | 3 | ||||
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/emacs.c | 2 |
15 files changed, 48 insertions, 30 deletions
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-09-17 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * configure.ac (copyright): New output variable. | ||
| 4 | (COPYRIGHT): New AC_DEFINE. | ||
| 5 | |||
| 1 | 2012-09-16 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2012-09-16 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | Remove configure's --without-sync-input option (Bug#12450). | 8 | Remove configure's --without-sync-input option (Bug#12450). |
diff --git a/admin/ChangeLog b/admin/ChangeLog index 8fe16b9e766..6d3118d8ba6 100644 --- a/admin/ChangeLog +++ b/admin/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-09-17 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * admin.el (set-copyright): No more need to set copyrights for | ||
| 4 | nextstep, or .c files. Add configure.ac and config.nt. | ||
| 5 | |||
| 1 | 2012-09-16 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2012-09-16 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | Remove configure's --without-sync-input option (Bug#12450). | 8 | Remove configure's --without-sync-input option (Bug#12450). |
diff --git a/admin/admin.el b/admin/admin.el index b076bb67dd1..4d68fca97b2 100644 --- a/admin/admin.el +++ b/admin/admin.el | |||
| @@ -140,34 +140,18 @@ Root must be the root of an Emacs source tree." | |||
| 140 | (format-time-string "%Y"))))) | 140 | (format-time-string "%Y"))))) |
| 141 | (unless (file-exists-p (expand-file-name "src/emacs.c" root)) | 141 | (unless (file-exists-p (expand-file-name "src/emacs.c" root)) |
| 142 | (error "%s doesn't seem to be the root of an Emacs source tree" root)) | 142 | (error "%s doesn't seem to be the root of an Emacs source tree" root)) |
| 143 | (set-version-in-file root "src/emacs.c" copyright | 143 | (set-version-in-file root "configure.ac" copyright |
| 144 | (rx (and "emacs_copyright" (0+ (not (in ?\"))) | 144 | (rx (and bol "copyright" (0+ (not (in ?\"))) |
| 145 | ?\" (submatch (1+ (not (in ?\")))) ?\"))) | ||
| 146 | (set-version-in-file root "lib-src/ebrowse.c" copyright | ||
| 147 | (rx (and "emacs_copyright" (0+ (not (in ?\"))) | ||
| 148 | ?\" (submatch (1+ (not (in ?\")))) ?\"))) | ||
| 149 | (set-version-in-file root "lib-src/etags.c" copyright | ||
| 150 | (rx (and "emacs_copyright" (0+ (not (in ?\"))) | ||
| 151 | ?\" (submatch (1+ (not (in ?\")))) ?\"))) | 145 | ?\" (submatch (1+ (not (in ?\")))) ?\"))) |
| 146 | (set-version-in-file root "nt/config.nt" copyright | ||
| 147 | (rx (and bol "#" (0+ blank) "define" (1+ blank) | ||
| 148 | "COPYRIGHT" (1+ blank) | ||
| 149 | ?\" (submatch (1+ (not (in ?\")))) ?\"))) | ||
| 152 | (set-version-in-file root "lib-src/rcs2log" copyright | 150 | (set-version-in-file root "lib-src/rcs2log" copyright |
| 153 | (rx (and "Copyright" (0+ space) ?= (0+ space) | 151 | (rx (and "Copyright" (0+ space) ?= (0+ space) |
| 154 | ?\' (submatch (1+ nonl))))) | 152 | ?\' (submatch (1+ nonl))))) |
| 155 | ;; This one is a nuisance, as it needs to be split over two lines. | 153 | ;; This one is a nuisance, as it needs to be split over two lines. |
| 156 | (string-match "\\(.*[0-9]\\{4\\} *\\)\\(.*\\)" copyright) | 154 | (string-match "\\(.*[0-9]\\{4\\} *\\)\\(.*\\)" copyright) |
| 157 | ;; nextstep. | ||
| 158 | (set-version-in-file | ||
| 159 | root "nextstep/templates/Info.plist.in" | ||
| 160 | copyright (rx (and "CFBundleGetInfoString" (1+ anything) "Emacs" (1+ space) | ||
| 161 | (1+ (in "0-9.")) (1+ space) | ||
| 162 | (submatch (1+ (not (in ?\<))))))) | ||
| 163 | (set-version-in-file | ||
| 164 | root "nextstep/templates/InfoPlist.strings.in" | ||
| 165 | copyright (rx (and "NSHumanReadableCopyright" (0+ space) ?\= (0+ space) | ||
| 166 | ?\" (submatch (1+ (not (in ?\"))))))) | ||
| 167 | (set-version-in-file | ||
| 168 | root "nextstep/templates/Info-gnustep.plist.in" | ||
| 169 | copyright (rx (and "Copyright" (0+ space) ?\= (0+ space) | ||
| 170 | ?\" (submatch (1+ (not (in ?\"))))))) | ||
| 171 | (when (string-match "\\([0-9]\\{4\\}\\)" copyright) | 155 | (when (string-match "\\([0-9]\\{4\\}\\)" copyright) |
| 172 | (setq copyright (match-string 1 copyright)) | 156 | (setq copyright (match-string 1 copyright)) |
| 173 | (dolist (file (directory-files (expand-file-name "etc/refcards" root) | 157 | (dolist (file (directory-files (expand-file-name "etc/refcards" root) |
diff --git a/configure.ac b/configure.ac index 569b367371a..d09d22bcbbd 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -3978,6 +3978,11 @@ fi | |||
| 3978 | 3978 | ||
| 3979 | version=$PACKAGE_VERSION | 3979 | version=$PACKAGE_VERSION |
| 3980 | 3980 | ||
| 3981 | copyright="Copyright (C) 2012 Free Software Foundation, Inc." | ||
| 3982 | AC_DEFINE_UNQUOTED(COPYRIGHT, ["$copyright"], | ||
| 3983 | [Short copyright string for this version of Emacs.]) | ||
| 3984 | AC_SUBST(copyright) | ||
| 3985 | |||
| 3981 | ### Specify what sort of things we'll be editing into Makefile and config.h. | 3986 | ### Specify what sort of things we'll be editing into Makefile and config.h. |
| 3982 | ### Use configuration here uncanonicalized to avoid exceeding size limits. | 3987 | ### Use configuration here uncanonicalized to avoid exceeding size limits. |
| 3983 | AC_SUBST(version) | 3988 | AC_SUBST(version) |
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index f5846657707..3f1e287db34 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-09-17 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * ebrowse.c (version): | ||
| 4 | * etags.c (print_version): Use COPYRIGHT. | ||
| 5 | |||
| 1 | 2012-09-11 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2012-09-11 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | * pop.c (socket_connection) [HAVE_GETADDRINFO]: | 8 | * pop.c (socket_connection) [HAVE_GETADDRINFO]: |
diff --git a/lib-src/ebrowse.c b/lib-src/ebrowse.c index f8569fe3747..056ed471fde 100644 --- a/lib-src/ebrowse.c +++ b/lib-src/ebrowse.c | |||
| @@ -3516,8 +3516,7 @@ usage (int error) | |||
| 3516 | static _Noreturn void | 3516 | static _Noreturn void |
| 3517 | version (void) | 3517 | version (void) |
| 3518 | { | 3518 | { |
| 3519 | /* Makes it easier to update automatically. */ | 3519 | char emacs_copyright[] = COPYRIGHT; |
| 3520 | char emacs_copyright[] = "Copyright (C) 2012 Free Software Foundation, Inc."; | ||
| 3521 | 3520 | ||
| 3522 | printf ("ebrowse %s\n", VERSION); | 3521 | printf ("ebrowse %s\n", VERSION); |
| 3523 | puts (emacs_copyright); | 3522 | puts (emacs_copyright); |
diff --git a/lib-src/etags.c b/lib-src/etags.c index e65082de534..ec415e9905f 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -836,8 +836,7 @@ etags --help --lang=ada."); | |||
| 836 | static void | 836 | static void |
| 837 | print_version (void) | 837 | print_version (void) |
| 838 | { | 838 | { |
| 839 | /* Makes it easier to update automatically. */ | 839 | char emacs_copyright[] = COPYRIGHT; |
| 840 | char emacs_copyright[] = "Copyright (C) 2012 Free Software Foundation, Inc."; | ||
| 841 | 840 | ||
| 842 | printf ("%s (%s %s)\n", (CTAGS) ? "ctags" : "etags", EMACS_NAME, VERSION); | 841 | printf ("%s (%s %s)\n", (CTAGS) ? "ctags" : "etags", EMACS_NAME, VERSION); |
| 843 | puts (emacs_copyright); | 842 | puts (emacs_copyright); |
diff --git a/nextstep/ChangeLog b/nextstep/ChangeLog index be73bc1f168..53f42c97716 100644 --- a/nextstep/ChangeLog +++ b/nextstep/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-09-17 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * templates/Info-gnustep.plist.in, templates/InfoPlist.strings.in: | ||
| 4 | * templates/Info.plist.in: Let configure set copyright. | ||
| 5 | |||
| 1 | 2012-09-16 Glenn Morris <rgm@gnu.org> | 6 | 2012-09-16 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * Makefile.in: New file. | 8 | * Makefile.in: New file. |
diff --git a/nextstep/templates/Info-gnustep.plist.in b/nextstep/templates/Info-gnustep.plist.in index 6da5af489fb..4ac97e5cde6 100644 --- a/nextstep/templates/Info-gnustep.plist.in +++ b/nextstep/templates/Info-gnustep.plist.in | |||
| @@ -11,7 +11,7 @@ | |||
| 11 | "Carl Edman (NeXTstep)", | 11 | "Carl Edman (NeXTstep)", |
| 12 | "..see etc/NEXTSTEP" | 12 | "..see etc/NEXTSTEP" |
| 13 | ); | 13 | ); |
| 14 | Copyright = "Copyright (C) 2012 Free Software Foundation, Inc."; | 14 | Copyright = "@copyright@"; |
| 15 | CopyrightDescription = "Released under the GNU General Public License Version 3 or later"; | 15 | CopyrightDescription = "Released under the GNU General Public License Version 3 or later"; |
| 16 | FullVersionID = "Emacs @version@, NS Windowing"; | 16 | FullVersionID = "Emacs @version@, NS Windowing"; |
| 17 | NSExecutable = Emacs; | 17 | NSExecutable = Emacs; |
diff --git a/nextstep/templates/Info.plist.in b/nextstep/templates/Info.plist.in index df9708eae71..25c73916e58 100644 --- a/nextstep/templates/Info.plist.in +++ b/nextstep/templates/Info.plist.in | |||
| @@ -553,7 +553,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. | |||
| 553 | <key>CFBundleExecutable</key> | 553 | <key>CFBundleExecutable</key> |
| 554 | <string>Emacs</string> | 554 | <string>Emacs</string> |
| 555 | <key>CFBundleGetInfoString</key> | 555 | <key>CFBundleGetInfoString</key> |
| 556 | <string>Emacs @version@ Copyright (C) 2012 Free Software Foundation, Inc.</string> | 556 | <string>Emacs @version@ @copyright@</string> |
| 557 | <key>CFBundleIconFile</key> | 557 | <key>CFBundleIconFile</key> |
| 558 | <string>Emacs.icns</string> | 558 | <string>Emacs.icns</string> |
| 559 | <key>CFBundleIdentifier</key> | 559 | <key>CFBundleIdentifier</key> |
diff --git a/nextstep/templates/InfoPlist.strings.in b/nextstep/templates/InfoPlist.strings.in index ce9779c7ac8..f38d8925017 100644 --- a/nextstep/templates/InfoPlist.strings.in +++ b/nextstep/templates/InfoPlist.strings.in | |||
| @@ -3,4 +3,4 @@ | |||
| 3 | CFBundleName = "Emacs"; | 3 | CFBundleName = "Emacs"; |
| 4 | CFBundleShortVersionString = "Version @version@"; | 4 | CFBundleShortVersionString = "Version @version@"; |
| 5 | CFBundleGetInfoString = "Emacs version @version@, NS Windowing"; | 5 | CFBundleGetInfoString = "Emacs version @version@, NS Windowing"; |
| 6 | NSHumanReadableCopyright = "Copyright (C) 2012 Free Software Foundation, Inc."; | 6 | NSHumanReadableCopyright = "@copyright@"; |
diff --git a/nt/ChangeLog b/nt/ChangeLog index 197ce0cf850..f2a5281d1f8 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-09-17 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * config.nt (COPYRIGHT): New. | ||
| 4 | |||
| 1 | 2012-09-15 Paul Eggert <eggert@cs.ucla.edu> | 5 | 2012-09-15 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 6 | ||
| 3 | Port _setjmp fix to POSIXish hosts as well as Microsoft. | 7 | Port _setjmp fix to POSIXish hosts as well as Microsoft. |
diff --git a/nt/config.nt b/nt/config.nt index 82b7da430ab..96217a8c580 100644 --- a/nt/config.nt +++ b/nt/config.nt | |||
| @@ -86,6 +86,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 86 | his/her Emacs. */ | 86 | his/her Emacs. */ |
| 87 | #undef CLASH_DETECTION | 87 | #undef CLASH_DETECTION |
| 88 | 88 | ||
| 89 | /* Short copyright string for this version of Emacs. */ | ||
| 90 | #define COPYRIGHT "Copyright (C) 2012 Free Software Foundation, Inc." | ||
| 91 | |||
| 89 | /* Define to one of '_getb67', 'GETB67', 'getb67' for Cray-2 and Cray-YMP | 92 | /* Define to one of '_getb67', 'GETB67', 'getb67' for Cray-2 and Cray-YMP |
| 90 | systems. This function is required for 'alloca.c' support on those systems. | 93 | systems. This function is required for 'alloca.c' support on those systems. |
| 91 | */ | 94 | */ |
diff --git a/src/ChangeLog b/src/ChangeLog index f21395d9632..3c0799d14b3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-09-17 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * emacs.c: Use COPYRIGHT. | ||
| 4 | |||
| 1 | 2012-09-16 Paul Eggert <eggert@cs.ucla.edu> | 5 | 2012-09-16 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 6 | ||
| 3 | Remove configure's --without-sync-input option (Bug#12450). | 7 | Remove configure's --without-sync-input option (Bug#12450). |
diff --git a/src/emacs.c b/src/emacs.c index 233c0e68a14..d4b52ab64ea 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -88,7 +88,7 @@ extern void moncontrol (int mode); | |||
| 88 | #endif | 88 | #endif |
| 89 | 89 | ||
| 90 | static const char emacs_version[] = VERSION; | 90 | static const char emacs_version[] = VERSION; |
| 91 | static const char emacs_copyright[] = "Copyright (C) 2012 Free Software Foundation, Inc."; | 91 | static const char emacs_copyright[] = COPYRIGHT; |
| 92 | 92 | ||
| 93 | /* Empty lisp strings. To avoid having to build any others. */ | 93 | /* Empty lisp strings. To avoid having to build any others. */ |
| 94 | Lisp_Object empty_unibyte_string, empty_multibyte_string; | 94 | Lisp_Object empty_unibyte_string, empty_multibyte_string; |