diff options
| author | Glenn Morris | 2015-04-24 14:34:37 -0400 |
|---|---|---|
| committer | Glenn Morris | 2015-04-24 14:34:37 -0400 |
| commit | 9eabc76e5b6079c4a97964db83e2b6f53fd0f436 (patch) | |
| tree | aad0c969943f0580065d071a3f708d9eae5f947a | |
| parent | 2f3011a46671c255838dc35e77e1ae66dc50b857 (diff) | |
| download | emacs-9eabc76e5b6079c4a97964db83e2b6f53fd0f436.tar.gz emacs-9eabc76e5b6079c4a97964db83e2b6f53fd0f436.zip | |
* build-aux/gitlog-to-emacslog: Convert "Fixes:" to "(Bug#)".
Fixes: debbugs:20325
| -rwxr-xr-x | build-aux/gitlog-to-emacslog | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/build-aux/gitlog-to-emacslog b/build-aux/gitlog-to-emacslog index 2b82115a49a..d994d140fe6 100755 --- a/build-aux/gitlog-to-emacslog +++ b/build-aux/gitlog-to-emacslog | |||
| @@ -4,6 +4,8 @@ | |||
| 4 | 4 | ||
| 5 | # Copyright (C) 2014-2015 Free Software Foundation, Inc. | 5 | # Copyright (C) 2014-2015 Free Software Foundation, Inc. |
| 6 | 6 | ||
| 7 | # Author: Paul Eggert | ||
| 8 | |||
| 7 | # This program is free software: you can redistribute it and/or modify | 9 | # This program is free software: you can redistribute it and/or modify |
| 8 | # it under the terms of the GNU General Public License as published by | 10 | # it under the terms of the GNU General Public License as published by |
| 9 | # the Free Software Foundation, either version 3 of the License, or | 11 | # the Free Software Foundation, either version 3 of the License, or |
| @@ -17,8 +19,6 @@ | |||
| 17 | # You should have received a copy of the GNU General Public License | 19 | # You should have received a copy of the GNU General Public License |
| 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | 20 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19 | 21 | ||
| 20 | # Written by Paul Eggert | ||
| 21 | |||
| 22 | LC_ALL=C | 22 | LC_ALL=C |
| 23 | export LC_ALL | 23 | export LC_ALL |
| 24 | 24 | ||
| @@ -38,6 +38,14 @@ ${srcprefix}build-aux/gitlog-to-changelog --ignore-matching='^; ' \ | |||
| 38 | 38 | ||
| 39 | if test -s "${distprefix}ChangeLog.tmp"; then | 39 | if test -s "${distprefix}ChangeLog.tmp"; then |
| 40 | 40 | ||
| 41 | # Fix up bug references. | ||
| 42 | # This would be better as eg a --transform option to gitlog-to-changelog, | ||
| 43 | # but... effort. FIXME does not handle rare cases like: | ||
| 44 | # Fixes: debbugs:19434 debbugs:19519 | ||
| 45 | sed 's/ Fixes: \(debbugs:\|bug#\)\([0-9][0-9]*\)/ (Bug#\2)/' \ | ||
| 46 | "${distprefix}ChangeLog.tmp" > "${distprefix}ChangeLog.tmp2" | ||
| 47 | mv "${distprefix}ChangeLog.tmp2" "${distprefix}ChangeLog.tmp" | ||
| 48 | |||
| 41 | # Find the years covered by the generated ChangeLog, so that | 49 | # Find the years covered by the generated ChangeLog, so that |
| 42 | # a proper copyright notice can be output. | 50 | # a proper copyright notice can be output. |
| 43 | years=` | 51 | years=` |