summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2015-05-08 21:02:36 -0400
committerGlenn Morris <rgm@gnu.org>2015-05-08 21:02:36 -0400
commitdeb845418b4c5728170f30f7f9b9f930979a562d (patch)
tree5d538d764ce1d8c2d0f6da41055aab0b8367a463 /build-aux
parent22e3ec2b53295ab2dd5f5a70e330f920abbfdeea (diff)
* build-aux/gitlog-to-emacslog: Don't hard-code "ChangeLog.2".
* Makefile.in (ChangeLog): Pass -n to gitlog-to-emacslog.
Diffstat (limited to 'build-aux')
-rwxr-xr-xbuild-aux/gitlog-to-emacslog8
1 files changed, 5 insertions, 3 deletions
diff --git a/build-aux/gitlog-to-emacslog b/build-aux/gitlog-to-emacslog
index 0db91d5220..28953d725f 100755
--- a/build-aux/gitlog-to-emacslog
+++ b/build-aux/gitlog-to-emacslog
@@ -26,11 +26,13 @@ export LC_ALL
gen_origin=2c1b8604946efbcd8ec5dd6c6dda7541ce4fc3c0
force=
output=ChangeLog
+nmax=2
while [ $# -gt 0 ]; do
case "$1" in
-g|--gen-origin) gen_origin="$2" ; shift ;;
-f|--force) force=1 ;;
+ -n|--nmax) nmax="$2"; shift ;;
-o|--output) output="$2" ; shift ;;
*) echo "Unrecognized argument: $1" >&2; exit 1 ;;
esac
@@ -86,12 +88,12 @@ if test -s "${distprefix}ChangeLog.tmp"; then
sed -n '
1i\
- /^See ChangeLog.1 for earlier/,${
- s/ChangeLog\.1/ChangeLog.2/
+ /^See ChangeLog.[0-9]* for earlier/,${
+ s/ChangeLog\.[0-9]*/ChangeLog.'$nmax'/
s/\(Copyright[ (C)]*\)[0-9]*-[0-9]*/\1'"$year_range"'/
p
}
- ' <ChangeLog.2 >>"${distprefix}ChangeLog.tmp" || exit
+ ' <ChangeLog.$nmax >>"${distprefix}ChangeLog.tmp" || exit
fi
# Install the generated ChangeLog.