[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 3839884: * build-aux/gitlog-to-emacslog: Allow spec
From: |
Glenn Morris |
Subject: |
[Emacs-diffs] master 3839884: * build-aux/gitlog-to-emacslog: Allow specification of output. |
Date: |
Thu, 07 May 2015 01:37:14 +0000 |
branch: master
commit 38398844200322e81e20f4fb2ad129b72a0e8a21
Author: Glenn Morris <address@hidden>
Commit: Glenn Morris <address@hidden>
* build-aux/gitlog-to-emacslog: Allow specification of output.
---
build-aux/gitlog-to-emacslog | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/build-aux/gitlog-to-emacslog b/build-aux/gitlog-to-emacslog
index 996f6d0..059cf81 100755
--- a/build-aux/gitlog-to-emacslog
+++ b/build-aux/gitlog-to-emacslog
@@ -23,12 +23,14 @@ LC_ALL=C
export LC_ALL
gen_origin=${1?}
+output=$2
+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
- >"${distprefix}ChangeLog"
+ rm -f "${distprefix}$output" || exit
+ >"${distprefix}$output"
exit
}
@@ -78,4 +80,5 @@ if test -s "${distprefix}ChangeLog.tmp"; then
fi
# Install the generated ChangeLog.
-mv -i "${distprefix}ChangeLog.tmp" "${distprefix}ChangeLog"
+test "$output" = "ChangeLog.tmp" || \
+ mv -i "${distprefix}ChangeLog.tmp" "${distprefix}$output"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 3839884: * build-aux/gitlog-to-emacslog: Allow specification of output.,
Glenn Morris <=