diff options
| author | Glenn Morris | 2015-05-06 21:37:09 -0400 |
|---|---|---|
| committer | Glenn Morris | 2015-05-06 21:37:09 -0400 |
| commit | 38398844200322e81e20f4fb2ad129b72a0e8a21 (patch) | |
| tree | 4d0e66f39e1d89f2a186a58b99be1da7090566bb | |
| parent | 22f9e2cee692ef1c24fb6c74cb37faf45bd7cb02 (diff) | |
| download | emacs-38398844200322e81e20f4fb2ad129b72a0e8a21.tar.gz emacs-38398844200322e81e20f4fb2ad129b72a0e8a21.zip | |
* build-aux/gitlog-to-emacslog: Allow specification of output.
| -rwxr-xr-x | 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 996f6d0ec7d..059cf81abc0 100755 --- a/build-aux/gitlog-to-emacslog +++ b/build-aux/gitlog-to-emacslog | |||
| @@ -23,12 +23,14 @@ LC_ALL=C | |||
| 23 | export LC_ALL | 23 | export LC_ALL |
| 24 | 24 | ||
| 25 | gen_origin=${1?} | 25 | gen_origin=${1?} |
| 26 | output=$2 | ||
| 27 | test -n "$output" || output=ChangeLog | ||
| 26 | 28 | ||
| 27 | # If this is not a Git repository, just generate an empty ChangeLog. | 29 | # If this is not a Git repository, just generate an empty ChangeLog. |
| 28 | test -d ${srcprefix}.git || { | 30 | test -d ${srcprefix}.git || { |
| 29 | # Remove any old ChangeLog, in case it is a vc-dwim symlink. | 31 | # Remove any old ChangeLog, in case it is a vc-dwim symlink. |
| 30 | rm -f "${distprefix}ChangeLog" || exit | 32 | rm -f "${distprefix}$output" || exit |
| 31 | >"${distprefix}ChangeLog" | 33 | >"${distprefix}$output" |
| 32 | exit | 34 | exit |
| 33 | } | 35 | } |
| 34 | 36 | ||
| @@ -78,4 +80,5 @@ if test -s "${distprefix}ChangeLog.tmp"; then | |||
| 78 | fi | 80 | fi |
| 79 | 81 | ||
| 80 | # Install the generated ChangeLog. | 82 | # Install the generated ChangeLog. |
| 81 | mv -i "${distprefix}ChangeLog.tmp" "${distprefix}ChangeLog" | 83 | test "$output" = "ChangeLog.tmp" || \ |
| 84 | mv -i "${distprefix}ChangeLog.tmp" "${distprefix}$output" | ||