Commit 38398844 authored by Glenn Morris's avatar Glenn Morris

* build-aux/gitlog-to-emacslog: Allow specification of output.

parent 22f9e2ce
......@@ -23,12 +23,14 @@ LC_ALL=C
export LC_ALL
test -n "$output" || output=ChangeLog
# If this is not a Git repository, just generate an empty ChangeLog.
test -d ${srcprefix}.git || {
# Remove any old ChangeLog, in case it is a vc-dwim symlink.
rm -f "${distprefix}ChangeLog" || exit
rm -f "${distprefix}$output" || exit
......@@ -78,4 +80,5 @@ if test -s "${distprefix}ChangeLog.tmp"; then
# Install the generated ChangeLog.
mv -i "${distprefix}ChangeLog.tmp" "${distprefix}ChangeLog"
test "$output" = "ChangeLog.tmp" || \
mv -i "${distprefix}ChangeLog.tmp" "${distprefix}$output"
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