Commit 3311ace9 authored by Paul Eggert's avatar Paul Eggert

gitlog-to-changelog coding cookie and mv -i

* build-aux/gitlog-to-emacslog: Use ChangeLog.1, not,
for copyright notice prototype, so that we get a proper "coding:"
cookie.  Use 'mv -i' to avoid unconditionally overwriting an
existing ChangeLog.  Problems reported by Eli Zaretskii in:
parent 4e642454
......@@ -58,12 +58,15 @@ if test -s "${distprefix}ChangeLog.tmp"; then
# Append a proper copyright notice.
sed "1d
s/\\(Copyright[ (C)]*\\)[0-9]*-[0-9]*/\\1$year_range/
s/^# //
" < >>"${distprefix}ChangeLog.tmp" || exit
sed -n '
/^;; Local Variables:/,${
s/\(Copyright[ (C)]*\)[0-9]*-[0-9]*/\1'"$year_range"'/
' <ChangeLog.1 >>"${distprefix}ChangeLog.tmp" || exit
# Install the generated ChangeLog.
mv -f "${distprefix}ChangeLog.tmp" "${distprefix}ChangeLog"
mv -i "${distprefix}ChangeLog.tmp" "${distprefix}ChangeLog"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment