* build-aux/gitlog-to-emacslog: Allow specification of output.
This commit is contained in:
parent
22f9e2cee6
commit
3839884420
1 changed files with 6 additions and 3 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue